Created
January 4, 2012 07:12
-
-
Save ScottPhillips/1558910 to your computer and use it in GitHub Desktop.
Faceboook SDK PHP : Get Number of Fans
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 | |
require('facebook.php'); | |
$facebook = new Facebook(array( | |
'appId' => 'YOUR_APP_ID', | |
'secret' => 'YOUR_APP_SECRET', | |
)); | |
$cokeFans = $facebook->api('/cocacola'); | |
echo 'Coke is good, it has ' . $cokeFans['fan_count'] . ' fans!'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment