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&p[title]=<?php echo $title;?> &p[summary]=<?php echo $summary;?> &p[url]=<?php echo $url; ?> &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
Post a Comment