Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created April 24, 2014 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronpk/11272807 to your computer and use it in GitHub Desktop.
Save aaronpk/11272807 to your computer and use it in GitHub Desktop.
$facebook = new Facebook(array(
'appId' => $facebookClientID,
'secret' => $facebookClientSecret
));
$facebook->setAccessToken($fbToken);
$facebook->setExtendedAccessToken();
$response = $facebook->api('/me/feed', 'POST', array(
'message' => $_POST['text'],
'actions' => array(
'name' => 'See Original',
'link' => 'http://example.com/xxxxx'
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment