我试图从Facebok的图形API获得friends_location
得到朋友的位置。我正在使用HybridAuth框架访问API。 如何返回朋友的位置/家乡等?
我的应用权限
我已经设置了以下权限为我的应用程序:
friends_about_me,friends_location,friends_hometown,user_location,email,user_birthday,offline_access,user_hometown
这是用户看到的Facebook许可屏幕的要求:
我试过的东西
我曾尝试以下方法来获取朋友的详细信息:
HybridAuth:$hybrid->getUserContacts();
和
的Native API:$hybrid->api()->api('/me/friends');
两种方法都返回没有朋友的位置信息的格式如下:
{"identifier": "12345678","displayName": "Joe Smith",},
我也看过this问题,但我已经在我的请求中包含了friends_about_me
权限。
完美。谢谢! – Kit 2012-03-05 10:08:20