Is there a way to find the connection between two users on facebook using the graphical API?

Consider 2 users U1 and U2

Consider the facebook app, which is approved by both users to access their personal information and friends list.

Secondly, both users are not friends and do not have common friends, but are connected by a chain of three users (F1, F2, F3 and 3 have a common list of friends), i.e.

U1 <----> F1 <----> F3 <-----> F2 <-----> U2

Then, using FQL, is it possible to define such a connection?

+4
source share
3 answers

You cannot check friends of friends like this, but you can check mutual friends between two users U1 and U2. This will work if there is only one level of abstraction between U1 and U2

those. given U1 ↔ F1, F2, F3, F4 ↔ U2 You can get a list of people in "F1" by making a call to the Graph API

/U1_USER_ID/mutualfriends/U2_USER_ID

+1
source

This is not possible because Facebook does not provide access to friends of friends who are needed. If you had many users of your application, you could find several people by registering each user in your own database.

+1
source

If facebook does not allow this feature, then http://hotornot.com does it ????

0
source

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


All Articles