FaceBook Graph API: Search Outside the Circle

Is it possible to search for users who are outside my immediate circle using the FB charting API? If not, does the paid subscription account have assistance in overcoming this obstacle?

I am using the following graph query, but seems to be limited in my circle:

https://graph.facebook.com/search?q=xx+yy&limit=5000&type=user&access_token= *

Also, if I increase the offset using pagination in the next call, it will still return the same set of user IDs. Therefore, Iโ€™m not sure that I am passing parameters incorrectly or missed some other parameters.

Thanks for your help in advance!

+4
source share
1 answer

Not sure what you mean by your immediate circle in terms of Facebook, but I assume you mean your friends. The Graph API allows you to search for all public objects ( source ) - this means that everyone is (according to the answers to this page , since the names are always public - this is my understanding), and not just those with whom you are friends on Facebook.

Therefore, when you search for โ€œJohn,โ€ you must get everyone to call John, if you use the Graph API correctly, make sure your access token is valid (you do not need special permissions to search for people) and your syntax follows the example here .

To test your request, I suggest you use the Graph API Explorer before adding the request to the application code. This is a quick way to check if an error is in your request or elsewhere. For example, if you want to find everyone named John, use this link http://developers.facebook.com/tools/explorer?method=GET&path=search%3Fq%3DJohn%26type%3Duser . Just be sure to click on the โ€œGet access tokenโ€ button on the right if you are using Explorer for the first time, otherwise the request will return an error.

0
source

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


All Articles