Created
December 27, 2013 06:27
-
-
Save johnbocook/8143357 to your computer and use it in GitHub Desktop.
Get Facebook follower count
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 $json = file_get_contents('http://api.facebook.com/method/fql.query?format=json&query=select+fan_count+from+page+where+page_id%3D475488679182886'); | |
$decode = json_decode($json); | |
echo $decode[0]; // Fan Count | |
?> |
This is deprecated , any other way to get this?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like this method is deprecated.