Facebook Likes, Twitter Follows and Feedburner Count in PHP with cURL/SimpleXML (Deluxe)


So API’s from common providers are unreliable… below is the same code as my previous post but with two layers (1h + 24h) of Alternative PHP Cache (APC) caching and exception handling for the SimpleXML. Worth noting that the code expects there to be a defined non-fatal error function.

Note: PHP must be compiled with cURL: http://uk.php.net/manual/en/curl.installation.php

Note: APC must be installed with PECL: http://www.php.net/manual/en/apc.installation.php

Note: For the Feedburner API request to work you must have FeedCount activated in FeedBurner

References:

Edit: Since posting the Feedburner API has been withdrawn :(

About Ingmar Boddington

Codemonkey, Sheffield, UK
This entry was posted in PHP and tagged APC, API, cURL, Facebook, FeedBurner, PHP, SimpleXML, Twitter, XML. Bookmark the permalink.

One Response to Facebook Likes, Twitter Follows and Feedburner Count in PHP with cURL/SimpleXML (Deluxe)

  1. Jason says:

    Great functions to read the feed count. Thanks

Comments are closed.