Friends of friends / list of friends of the 2nd degree. Facebook Graph API

I am trying to get my friend's friends list using the iPhone Facebook SDK. I tried the approach using the FQL and Graph API, but in both cases I get an error:

"It is not possible to find all YYYYYY friends. You can only search for a registered user (XXXXX) or friends of a registered user with the appropriate permission."

I did some research and saw that this functionality was not available through the Facebook API until October 2010. But then the radio silence. Well, it's almost 6 months later. So was it implemented?

I also requested all permissions required for my application.

+4
source share
2 answers

This functionality does not exist in the Facebook Social Graph API or FQL API.

During my searches, to find out how to do this, I found many developers who asked the same question. Some developers have requested this feature for more than two years. I think the FB team might consider confidentiality regarding performance.

+2
source

I have been working on this. I was able to see my friend's friends.

To do this, the following requirements are required:

  • Your friend should use the app.
  • Permission from the application read_stream, publish_stream, publish_checkins.

Try this fql query.

$query="SELECT uid, name, work_history FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 IN ( SELECT uid FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = $fb_id ) and is_app_user=1) )"; 
0
source

Source: https://habr.com/ru/post/1345044/


All Articles