<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 22:09:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Konstantin's Blog: Counting Facebook Fans in PHP: The Graph API Way]]></title>
      <guid>http://www.phpdeveloper.org/news/15019</guid>
      <link>http://www.phpdeveloper.org/news/15019</link>
      <description><![CDATA[<p>
In <a href="http://kovshenin.com/archives/counting-facebook-fans-in-php-the-graph-api-way/">a quick new post</a> to his blog <i>Konstantin</i> 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.
</p>
<blockquote>
In a previous blog post called <a href="http://kovshenin.com/archives/how-to-count-facebook-fans-in-php/">How to Count Facebook Fans in PHP</a> 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.
</blockquote>
<p>
He uses the <a href="http://github.com/facebook/php-sdk/">Facebook PHP SDK</a> to make the connection and call the "api()" method on a page (his example is the one for <a href="http://facebook.com/mashable">Mashable</a>) and return back an array that includes the "fan_count" value.
</p>]]></description>
      <pubDate>Wed, 25 Aug 2010 13:06:30 -0500</pubDate>
    </item>
  </channel>
</rss>
