Get banned users from Facebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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