Created
March 26, 2014 12:05
-
-
Save niraj-shah/9781705 to your computer and use it in GitHub Desktop.
Adding actions to Facebook Posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// post to facebook - requires publish_actions permission | |
$post = $facebook->api( "me/feed", "POST", array( | |
'message' => 'Testing custom search action', | |
'actions' => array( | |
'name' => 'Search', | |
'link' => 'http://www.google.com' | |
) | |
) ); | |
// success will return id of post | |
print_r( $post ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment