Created
July 12, 2014 23:42
-
-
Save SecureCloud-biz/610ff78fc71d2db3a196 to your computer and use it in GitHub Desktop.
Adding actions to Facebook Posts
This file contains hidden or 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