Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created August 13, 2013 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save niraj-shah/6222735 to your computer and use it in GitHub Desktop.
Save niraj-shah/6222735 to your computer and use it in GitHub Desktop.
Get banned users from Facebook
<?php
// 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