News Feed
Jobs Feed
Sections




News Archive
Hasin Hayder's Blog:
Unexpected return value from Facebook FQL.query via PHP REST Lib
February 18, 2008 @ 12:06:00

Hasin Hayder had been working with the Facebook API and stumbled across a bug in an application they had created for the social networking site:

The method which we used to count number of friends of a specific user who has added that application was returning 1 when there is no friend actually installed it.

He gives the SQL query and the PHP code he was originally using to find out the number of users for the application. The problem came from the fact that the returning value wasn't an array - it was a string. The corrected code (that checks for array-ness) is also included.

0 comments voice your opinion now!
facebook query rest library return value array string


blog comments powered by Disqus

Similar Posts

SocialDevelopers.net: Facebook and the Zend Framework - Part 1: Iframe Authentication

PHPMaster.com: Database Interaction Made Easy with NotORM

WaxJelly Blog: Simple PHP script using the YouTube API (with pagination)

Matt Williams' Blog: Implementing oAuth Twitter with CodeIgniter

Padraic Brady's Blog: PHPSpec 0.2.0 Released


Community Events











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


development conference language opinion introduction unittest zendframework2 series community interview release tool object code framework podcast example functional composer testing

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