Facebook FQL 未返回我的好友列表中的所有好友

发布于 2024-12-22 01:21:13 字数 504 浏览 0 评论 0原文

可能的重复:
正在获取列表Graph API 或 FQL 中的朋友 - 似乎缺少一些朋友

我为我的朋友进行了 FQL 查询,

SELECT name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())

它返回了 161 个朋友,而我的 facebook 显示 163 个。 我查看了名单,发现有两个联系人失踪了。我看不出这些朋友有什么特别之处来解释为什么他们不在 FQL 查询的列表中。

关于为什么会发生这种情况有什么想法吗?

Possible Duplicate:
Fetching list of friends in Graph API or FQL - Appears to be missing some friends

I did a FQL query for my friends

SELECT name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())

It returned 161 friends while my facebook shows 163.
I looked through the list and noticed two contacts were missing. I can't see anything special about these friends to explain why they're not on the FQL query's list.

Any ideas on why this is happpening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

许仙没带伞 2024-12-29 01:21:13

问题是,在使用 fql 时,在前端 facebook 还显示已停用的好友,如评论 此处 中所述您将获得没有停用帐户的朋友列表。

The problem is that in front end facebook is showing also deactivated friends as described in comments here while with fql you will get list of friends without deactivated accounts.

入怼 2024-12-29 01:21:13

我遇到了类似的问题。据我所知,故意阻止所有应用程序活动的朋友也不会出现在该查询中。

I've run into a similar issue. To my knowledge, friends who have deliberately blocked all app activity will additionally not show up in this query.

鹿港巷口少年归 2024-12-29 01:21:13

您可以尝试通过为查询指定偏移量来对查询进行分页。

因此,在查询下表和连接时,请使用基于时间的分页而不是“偏移”,以确保每次调用都能返回尽可能多的结果。对于这些 Graph API 连接,请使用“since”和“until”参数(例如 https:// /graph.facebook.com/chickfila/posts?until=1298508006)

对于这些 FQL 表,使用使用其分页的 WHERE 子句“timestamp”/“created_time”列(例如“SELECT message,created_time FROM stream WHERE source_id = 21543405100 ANDcreated_time < 1299634732”)

您还可以参考此以获取更多示例
http://developers.facebook.com/blog/post/478/

You can try Paging your query by specifying Offsets to your query.

As such, when querying the following tables and connections, use time-based paging instead of “offset” to ensure you are getting back as many results as possible with each call. For these Graph API connections, use the “since” and “until” parameters (e.g. https://graph.facebook.com/chickfila/posts?until=1298508006)

For these FQL tables, use a WHERE clause that paginates using their “timestamp”/”created_time” column (e.g. “SELECT message, created_time FROM stream WHERE source_id = 21543405100 AND created_time < 1299634732”)

You can also refer this for more examples
http://developers.facebook.com/blog/post/478/

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