Facebook API How to add tags to post API using PHP?
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!





