FQL:检索已授权我的应用程序的所有用户朋友的列表

发布于 2024-12-10 06:38:23 字数 810 浏览 0 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风铃鹿 2024-12-17 06:38:23

我建议将 =1 添加到您的 is_app_user我想没有它也能工作):

SELECT uid, name, pic_square
FROM user 
WHERE is_app_user=1 AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())

在某一时刻,这在 < a href="http://developers.facebook.com/tools/explorer/" rel="nofollow">explorer,但截至 2014 年 6 月,Facebook 已修复该问题。 (阅读此评论

I suggest adding =1 to your is_app_user (I guess it will work without it too):

SELECT uid, name, pic_square
FROM user 
WHERE is_app_user=1 AND uid IN (SELECT uid2 FROM friend WHERE uid1 = me())

At one point, this was broken in the explorer, but as of June 2014, Facebook had fixed it. (Read this comment.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文