Ads

Facebook API How to add tags to post API using PHP?

June 23, 2010
Filed under: FaceBook Integration, Featured 

First Follow all the 5 Steps from my Previous post http://blog.theunical.com/facebook-integration/5-steps-to-publish-on-a-facebook-wall-using-php/ then in last program include below code to add tags to your post.

Publishing a Tags to a Post


$message = 'From My App: publish steven tags on facebook';

$tag_links = array( array('text' => 'Tags here',
 'href' => 'http://blog.theunical.com'));

if(  $facebook->api_client->stream_publish($message, null, $tag_links))
 echo "Added on FB Wall";
} catch(Exception $e) {
 echo $e . "<br />";

}



Exiting isn’t it.

–Steven

Comments

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Subscribe without commenting