FQL:检索已授权我的应用程序的所有用户朋友的列表
我在 stackoverflow 上的其他帖子上找到了各种 FQL 查询解决方案(帖子 1, 帖子 2) 提取已授权我的应用程序的所有用户朋友的列表,但是当我尝试在 Facebook Graph API 上演示这些,我收到以下查询解析器错误:
{
"error": {
"message": "(#601) Parser error: unexpected end of query.",
"type": "OAuthException"
}
}
这是我用于查询的确切语法(取自上面列出的“Post 1”)...
fql?q=SELECT uid, name, pic_square FROM user WHERE is_app_user AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
I have found various FQL querying solutions on other posts here on stackoverflow (Post 1, Post 2) to extract a list of all a user's friends that have authorized my application, but when I try to demo these on the Facebook Graph API, I get the following query parser error:
{
"error": {
"message": "(#601) Parser error: unexpected end of query.",
"type": "OAuthException"
}
}
Here's the exact syntax I'm using for my query (taken from "Post 1" listed above)...
fql?q=SELECT uid, name, pic_square FROM user WHERE is_app_user AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议将
=1
添加到您的is_app_user
(我想没有它也能工作):在某一时刻,这在 < a href="http://developers.facebook.com/tools/explorer/" rel="nofollow">explorer,但截至 2014 年 6 月,Facebook 已修复该问题。 (阅读此评论。)
I suggest adding
=1
to youris_app_user
(I guess it will work without it too):At one point, this was broken in the explorer, but as of June 2014, Facebook had fixed it. (Read this comment.)