How to get user network information using Facebook API? (Php)

I have been playing with the Facebook Graph API for about a week, and I still could not find how to get information about the user's network? I do not know if the Graph API stores a user network; I have not seen such information. Simply, if the user is on the Google Network, can I get the name and ID of the networks to which the user belongs?

If this is not possible, can I contact additional user email addresses?

Thank you for your help.

+4
source share
1 answer

Using FQL : the affiliations field of the user table contains this information

Example call: https://graph.facebook.com/fql?q=select affiliations from user where uid= 4&access_token=<ACCESS TOKEN>

Answer example:

 { "data": [ { "affiliations": [ { "nid": 16777217, "name": "Harvard", "type": "college" }, { "nid": 50431648, "name": "Facebook", "type": "work" } ] } ] } 
+6
source

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


All Articles