javascript - Unable to share image on Facebook shar.php -


i trying share website url specific image, unable so. i've tried 2 ways neither seem working.

method 1:

shows black image     <meta property="og:title" content="default description"/>     <meta property="og:type" content="default description"/>     <meta property="og:url" content="http://vmallonline.com/"/>     <meta property="og:image" content="http://vmallonline.com         /skin/frontend/estore/default/images/logo.png"/>     <meta property="og:site_name" content="imdb"/>     <meta property="og:description"           content="a group of u.s. marines, under command of                    renegade general, take on alcatraz ,                    threaten san francisco bay biological                    weapons."/>     <a href="http://www.facebook.com/sharer/sharer.php?       u=http://myurl.com/">share     </a><br /> 

method 2
method not show image on facebook

<?php $title=urlencode('title of iframe tab'); $url=urlencode('http://myurl.com/'); $summary=urlencode('custom message summarizes tab  about, or simple message tell people check out tab.'); $image=urlencode('http://myurl.com/skin/frontend/estore/default/images/logo.png'); ?>   <a onclick="window.open(   'http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>    &amp;p[summary]=<?php echo $summary;?>    &amp;p[url]=<?php echo $url; ?>    &amp;p[images][0]=<?php echo $image;?>    ','sharer','toolbar=0,status=0,width=548,height=325');"     href="javascript: void(0)">insert text or image here.</a> 


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -