Problem
我想得到friends_location
来自 Facebook Graph API。我正在使用以下方式访问 API混合认证 http://hybridauth.sourceforge.net/框架。如何返回朋友的位置/家乡等?
我的应用程序权限
我为我的应用程序设置了以下权限:
friends_about_me,friends_location,friends_hometown,user_location,email,user_birthday,offline_access,user_hometown
This is the request for permission screen the user sees on Facebook:
我尝试过的
我尝试了以下方法来获取朋友的详细信息:
混合验证:$hybrid->getUserContacts();
and
原生API:$hybrid->api()->api('/me/friends');
两者都返回以下格式,不带朋友的位置:
{"identifier": "12345678","displayName": "Joe Smith",},
我也见过this https://stackoverflow.com/questions/8307085/facebook-how-to-get-my-location-and-all-my-friends-location问题,但我已经包括了friends_about_me
在我的请求中获得许可。