Skip to content

Instantly share code, notes, and snippets.

@sohel-rana
Created November 26, 2013 10:09
Show Gist options
  • Save sohel-rana/7656058 to your computer and use it in GitHub Desktop.
Save sohel-rana/7656058 to your computer and use it in GitHub Desktop.
$facebook = new Facebook(array(
'appId' => FACEBOOK_APP_ID,
'secret' => FACEBOOK_APP_SECRET,
));
// Get User ID
$result = '';
$user_id = $facebook->getUser();
if ($user_id) {
$access_token = $facebook->getAccessToken();
$result = $facebook->api(array(
'method' => 'auth.revokeAuthorization',
'uid' => $user_id,
'access_token' => $access_token
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment