Wednesday, January 9, 2013

Facebook Share by php script

Share your content into facebook wall.you can use facebook in build code or javascript code or php code.
here we can use php code to share link into facebook wall.its very simple to use.
Just Add Your URL and Title.
  

Example Script:
//msg to share 
 $tt = "hello boss"; 
 //which url you want to share  
$url_p = "http://tutjunction.com"; 
 $url = urlencode($url_p);  
//share by 
 $text = "jaspal rana";  
$title = urlencode($text); 
 //facebook api  
$fb = "http://www.facebook.com/sharer.php?t=".$title."&u=".$url;

<!--click this link to share-->
<a href="<?php echo $fb; ?>">share link</a>

No comments:

Post a Comment

Thanks....