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 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' => ''));

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.



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.
Anti-spam image