Facebook Graph API FQL returning less results than expected
===



I'm trying to get the pages that my friends like using this FQL multiquery:

{
"query1":"SELECT uid2 FROM friend WHERE uid1 = me()",
"query2":"SELECT uid, page_id, type FROM page_fan WHERE uid IN (SELECT uid2 FROM #query1)",
"query3":"SELECT page_id, name, categories, type, page_url, pic_big FROM page WHERE page_id IN (SELECT page_id FROM #query2)"
}

The query works fine and returns results. However, it returns around 2940 pages for 260 people, which is way less than the sum of the actual like count for the people queried.

I considered it could be a permission problem and asked for one of the people on this list to remove "access likes, interests..." permissions for friends' applications. On the next run, her pages and likes weren't on the JSON returned, but the page count actually increased some 10 or 20 records.

Am I doing something wrong here? I'm using multiquery for performance reasons.

This occurs both using the Graph API explorer and the PHP SDK:

$fql = urlencode($fqlQuery);
$response = $facebook->api("/fql?q={$fql}");

Any thoughts on this problem?

Thanks in advance :)