Passing title, url and image on share.php of facebook -
i want share title , image , description on facebook without javascript passing these share.php of facebook. got code on site in question open source alternative addthis addtoany, sharethis etcfor social bookmarking
and have read question how pass custom parameter in facebook sharer link
now want combine both questions. can pass image, title , description in facebook share.php url
like:
<a class="scmfacebook" href='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;?>'>facebook</a> or if wrong please show me right destination.
according facebook developers (bug):
the sharer no longer take custom parameters , facebook pull info beingness displayed in preview same way appear on facebook post url og meta tags.
either utilize share button - requires javascript sdk
or, utilize latest share dialog - requires app id. has direct url direction method invoking share dialog:
https://www.facebook.com/dialog/share? app_id={app-id} &display=popup &href={link-to-share} &redirect_uri={redirect-uri} php facebook wordpress facebook-graph-api
No comments:
Post a Comment