Skip to content

Instantly share code, notes, and snippets.

@LinzardMac
Created February 17, 2013 23:17
Show Gist options
  • Save LinzardMac/4974027 to your computer and use it in GitHub Desktop.
Save LinzardMac/4974027 to your computer and use it in GitHub Desktop.
Get the facebook access token
$catray[] = $categorize;
$access = file_get_contents('https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=' . $clientid . '&client_secret=' . $clientsecret . '');
$token = str_replace('access_token=', '', $access);
// Fire the Hfbp request to Twitter
$response[] = 'https://graph.facebook.com/' . $pageid . '?fields=statuses.fields(from,id,message)&access_token='.$token;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment