简体   繁体   English

Facebook Graph API,无法获取用户个人资料

[英]Facebook Graph API, Unable to get user profile

When I http using graph API explorer in the context of "Graph API Explorer", I am able to query user information as - /v2.0/{user-id} 当我在“ Graph API Explorer”的上下文中使用graph API Explorer时,我能够以-/v2.0/{user-id}查询用户信息

when I http in the context of my app, I see the response as: { "error": { "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api ", "type": "GraphMethodException", "code": 100 } } 当我在应用程序上下文中http时,看到的响应为:{“ error”:{“ message”:“不支持的get请求。请阅读Graph API文档, 网址https://developers.facebook.com/docs/ graph-api “,” type“:” GraphMethodException“,” code“:100}}

Permission lists are same both on Graph API Explorer as well as my App: 权限列表在Graph API Explorer和我的App上都相同:

user_about_me user_activities user_birthday user_events user_friends user_likes user_location user_photos user_status user_videos email publish_actions read_friendlists read_stream user_about_me user_activities user_birthday user_events user_friends user_likes user_location user_photos user_status user_videos电子邮件publish_actions read_friendlists read_stream

我重新生成了一个新的访问令牌,并尝试了不同的用户ID集,它现在似乎正在工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM