Facebook Custom iFrame Share Button

Share anything on facebook  like link ,custom text – content, video ,image using this code from your website

Step .1

<?php
$title_face=urlencode(‘Title of Your Tab’);
$url_link=urlencode(‘http://www.facebook.com/yourfanpage&#8217;);
$message=urlencode(‘Custom message ……………’);
$image_photo=urlencode(‘http://www.yourajwebs.uphero.com/images/post.jpg&#8217;);
?>

Step .2

<a onClick=”window.open(‘http://www.facebook.com/sharer.php?s=100&amp;p%5Btitle%5D=&lt;?php echo $title_face;?>&amp;p[summary]=<?php echo $message;?>&amp;p[url]=<?php echo $url_link; ?>&amp;&p[images][0]=<?php echo $image_photo;?>’, ‘sharer’, ‘toolbar=0,status=0,width=548,height=325’);” target=”_parent” href=”javascript: void(0)”>
FShare</a>

thats it ….ur share button is ready

Advertisements