![]() |
In an update to this post here is another way to obtain the number of likes for a Facebook page.
I’ll assume that you’ve already registered a Facebook application, have downloaded the PHP SDK and have included for use in your code.
Setup an array with your Facebook applications credentials
‘appId’ => ’000000000′, // Put appID here
‘secret’ => ’0000c000c000c000c’, // Put your secret key here
));
Decide which page you wish to obtain the number of likes for
echo $getRequests['likes'];
Obviously you can consume, contrast and display this information in more exciting ways than simply echoing it to the screen. Enjoy.




| Based on a theme by Ori Pearl