Facebook Graph API FQL API returns fewer results than expected

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:)

+4
source share
1 answer

Facebook has an additional privacy feature that can limit the results you’ve received from certain people.

Settings are in the privacy settings and are called . How people bring your information to the applications that they use.

It also gives a brief description -

People who can see your information can bring it with them when they use the application. Use this option to manage the categories of information that people can bring with them.

One of the options within these settings is "Activities, interests, things I like" . "Activities, interests, things I like" For my profile, this option is disabled. Therefore, no matter what permissions the application receives from my friend, this application will not be able to see my "Likes".

My suspicion is that some of your (smarter) users have disabled this option, like me, and this is stopping your application from getting this information.

As an aside, I think this setting is critical for real privacy on a social network. Just because my friends can see which pages I like does not mean that I want any application that they used to be able to see this information as well.

+3
source

All Articles