Tag Archives: PHP

Get Facebook Like Status From Application Request


Another useful bit (PHP snippet this time) related to Facebook Page Apps:

When used in your application this results in a $like variable which will have a value of 0 or 1 depending on whether the Facebook user has … Continue reading

Posted in Facebook | Tagged Facebook, PHP | Leave a comment

Add Facebook Tab Application To Page Request


https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL YOUR_APP_ID = Individual application’s identifier (find this in your apps section). YOUR_URL = Address of the actual application. Then select page (for which you must be admin) to add to. (Got tired of finding this address in the Facebook … Continue reading

Posted in Facebook | Tagged Facebook, PHP | Leave a comment

Zend PHP 5.3 Certification


As of last week I am officially a Zend Certified Engineer (proof) and thought I should post something on preparing for the exam and share some useful resources for others who may be working towards the 5.3 certification. The “Zend … Continue reading

Posted in PHP | Tagged PHP, Zend | 2 Comments

PHP Error Handling – Part One, Error Types & Exceptions


As a study aid whilst working towards Zend Certification and also due to a post on the topic being requested by a colleague (Barry) and after a rant by me after a talk at PHP UK 2012, here is the … Continue reading

Posted in PHP | Tagged Error Handling, Exceptions, PHP | Leave a comment

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 … Continue reading

Posted in PHP | Tagged APC, API, cURL, Facebook, FeedBurner, PHP, SimpleXML, Twitter, XML | 1 Comment

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


Basic (no error handling) copy and paste code for getting Facebook Likes, Twitter Follows and a Feedburner Subscription count using PHP (with cURL):

Note: PHP must be compiled with cURL: http://uk.php.net/manual/en/curl.installation.php Note: For the Feedburner API request to work you … Continue reading

Posted in PHP | Tagged API, cURL, Facebook, FeedBurner, PHP, SimpleXML, Twitter, XML | 2 Comments