Facebook Search API - List all users based on location?

后端 未结 4 1980
隐瞒了意图╮
隐瞒了意图╮ 2021-01-16 11:19

Not sure if this is possible, but is there a way to list all users who specify a given location as their \"current city\" using the Graph API or some other means?

相关标签:
4条回答
  • 2021-01-16 11:55

    You can search for Users and add fields to query by like hometown or location. The user must have opened their privacy settings though to share location with search.

    https://graph.facebook.com/search?q=Marcus&type=user&access_token=

    0 讨论(0)
  • 2021-01-16 12:05

    If you see Facebook notification when you try to search but found nothing, it says:

    Looking for people or posts? Try entering a name, location, or different words.

    You can add location to the query, like: my_name my_location --> "Aminah Nuraini" Indonesia

    It will only work if the user allows people to see their location, though.

    0 讨论(0)
  • 2021-01-16 12:08

    There is no way to search for users who haven't authorized your app. Currently the search?q=xxxx&type=user searches only on name (facebook used to allow email, but removed that when they found out bad people were using that search to do bad things).

    0 讨论(0)
  • 2021-01-16 12:09

    Impossible, even if the app is authorized.

    Here are the fields you can search by (marked with *)

    http://developers.facebook.com/docs/reference/fql/user/

    0 讨论(0)
提交回复
热议问题