I am trying to get pages that my friends like to use this multi-screen FQL:
{ "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 about 2,940 pages for 260 people, which is less than the sum of the actual number needed for people's requests.
I thought this might be a permission issue, and asked one of the people on this list to remove access permissions for access, interests ... for friends' apps. In the next run, her pages and preferences were not returned JSON, but the number of pages actually increased by 10 or 20 entries.
Am I doing something wrong here? I use multiquery for performance reasons.
This happens both with the Graph API and with the PHP SDK:
$fql = urlencode($fqlQuery); $response = $facebook->api("/fql?q={$fql}");
Any thoughts on this issue?
Thanks in advance:)
source share