News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Konstantin's Blog:
Counting Facebook Fans in PHP The Graph API Way
August 25, 2010 @ 13:06:30

In a quick new post to his blog Konstantin shows how to get the number of fans for a Facebook page with a quick two line piece of code that uses their Graph API.

In a previous blog post called How to Count Facebook Fans in PHP I've shown a code snippet of how to count the number of fans on a fan page using PHP. Times have changed, the Graph API has been introduced, and due to some responses I introduce here the new way of retrieving your fans count using the new Graph API and php.

He uses the Facebook PHP SDK to make the connection and call the "api()" method on a page (his example is the one for Mashable) and return back an array that includes the "fan_count" value.

0 comments voice your opinion now!
graphapi facebook fan page api sdk


blog comments powered by Disqus

Similar Posts

Toomas Romer's Blog: SoC - Next Release Is Out (Eclipse Plugins in Php)

PHPMaster.com: REST - Can You do More than Spell It? Part 1

DesignShack.com: How to Build a Dynamic Imgur Upload App Using jQuery & PHP

Komunitasweb.com: Showing the weather with PHP and Google Weather API

Padraic Brady's Blog: ext/snarl: PHP interface to the Windows Snarl Notification Tool API


Community Events





Don't see your event here?
Let us know!


language security introduction mvc update framework composer release library version series symfony community tool voicesoftheelephpant laravel podcast package opinion interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework