访问好友基本信息
我正在尝试通过 FQL 从 FRIEND 页面访问基本信息:
SELECT name, status, locale FROM user WHERE uid = 11111111
我可以获取名称和区域设置,但看不到他们的状态。如果我转到他们的页面,我可以看到他们的状态,所以我也应该可以通过 FQL API 访问它,不是吗?
或者,当每个用户下次访问该页面时,我是否必须向他们请求 user_status(或friends_status?)?这绝对是我的绊脚石。
谢谢。
I'm trying to access basic information from a FRIEND page via FQL:
SELECT name, status, locale FROM user WHERE uid = 11111111
I can get the name and locale, but I can't see their status. If I go to their page, I can see their status, so I should have access to it via the FQL api too, shouldn't I?
Or, do I have to request every user for user_status (or friends_status?) when next they visit the page? This is definitely my stumbling block.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要查看您对访问令牌拥有哪些权限,请在 https://developers.facebook.com/tools 上检查它/lint。
要查看好友的状态,用户需要根据 授予
friends_status
https://developers.facebook.com/docs/reference/api/permissions。如果您发现您没有该用户的这些权限,请将其发送到 FB.login(),并将
scope
参数设置为您所需的权限。To see what permissions you have for your access token, lint it at https://developers.facebook.com/tools/lint.
To see a friend's status, the user will need to grant
friends_status
per https://developers.facebook.com/docs/reference/api/permissions.If you find that you don't have those permissions for that user, send them to FB.login() with the
scope
parameter set to the permissions you require.