Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get banned users from Facebook
// change these to match your app
$app_id = '1234567890';
$app_secret = 'abcdefghijklmnopqrstuvwxyz';
// init facebook class
$facebook = new Facebook( array( 'appId' => $app_id, 'secret' => $app_secret ) );
// call {app_id}/banned/ using app access_token
$banned = $facebook->api( $app_id . '/banned', array( 'access_token' => $app_id . '|' . $app_secret ) );
print_r( $banned );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.