Skip to content

Instantly share code, notes, and snippets.

@johnbocook
Created December 27, 2013 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbocook/8143357 to your computer and use it in GitHub Desktop.
Save johnbocook/8143357 to your computer and use it in GitHub Desktop.
Get Facebook follower count
<?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
?>
@jacobdubail
Copy link

Looks like this method is deprecated.

@ArchanaShahRS
Copy link

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