Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created February 21, 2014 19:27
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/2cdf70d3b342ce0ca9a1 to your computer and use it in GitHub Desktop.
Save aaronpk/2cdf70d3b342ce0ca9a1 to your computer and use it in GitHub Desktop.
$facebook = new Facebook(array(
'appId' => Config::$facebookClientID,
'secret' => Config::$facebookClientSecret
));
$facebook->setAccessToken($fbToken);
$facebook->setExtendedAccessToken();
$response = $facebook->api('/me/feed', 'POST', array(
'message' => $_POST['text']."\n\nSee original: ".$shortlink
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment