Get Friends Location using Facebook Graph API & HybridAuth

試著忘記壹切 提交于 2019-12-03 08:54:29

Take a look at the Graph API explorer:

https://developers.facebook.com/tools/explorer

Click on the "Get access token" button and select (under the Friends Data Permissions tab):

  • friends_hometown
  • friends_location

Once you have given the permissions for the access token click the friends link under connections in the right hand column. Your GET request should now look something like this:

https://graph.facebook.com/123456789/friends

You should now have a list of your friends with their name and id. If you click on the id you will see the results for that friend which include the hometown and location.

Hope that helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!