FQL 访问好友的“喜欢”

发布于 2024-12-28 07:04:08 字数 199 浏览 1 评论 0原文

如何使用 FQL 访问朋友的点赞?我可以在 Graph API 中看到它:

https://graph.facebook.com/1111111/likes

...但我似乎不知道如何在 FQL 中做到这一点。

How do I access friends likes with FQL? I can see it in the Graph API:

https://graph.facebook.com/1111111/likes

... but I can't seem to figure out how to do it in FQL.

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

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

发布评论

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

评论(2

柠檬心 2025-01-04 07:04:08
fql?q=SELECT uid, page_id from page_fan where uid IN(SELECT uid2 from friend where uid1=me())

您可以在您的 api explorer 中尝试此操作以获得用户朋友的喜欢。

fql?q=SELECT uid, page_id from page_fan where uid IN(SELECT uid2 from friend where uid1=me())

You can try this in your api explorer to get user friends likes.

怼怹恏 2025-01-04 07:04:08

您可以通过查询 url_like 表来完成此操作:

SELECT url FROM url_like WHERE user_id IN (
  SELECT uid2 FROM friend WHERE uid1 = me()
)

但是,您无法获取朋友喜欢的列表:照片、相册、活动、群组、注释、链接、视频、应用程序、状态、签到、评论、评论、帖子。

此信息位于 like 表中,但根据 user_id 查询它,您需要该用户的 read_stream 权限...

编辑:添加了 Graph API Explorer 示例以轻松预览:
http://developers.facebook.com/tools/explorer?method=GET&path=fql%3Fq%3DSELECT%20url%2 0FROM%20url_like%20WHERE%20user_id%20IN%20(SELECT%20uid2%20FROM%20friend%20WHERE%20uid1%20%3D%20me())

You can do this by querying url_like table:

SELECT url FROM url_like WHERE user_id IN (
  SELECT uid2 FROM friend WHERE uid1 = me()
)

You cannot however get list of likes by friends for: photo, album, event, group, note, link, video, application, status, check-in, review, comment, post.

This info is located in like table but to query it based on user_id you need read_stream permissions from that user...

EDIT: Added Graph API Explorer Example to easily preview this:
http://developers.facebook.com/tools/explorer?method=GET&path=fql%3Fq%3DSELECT%20url%20FROM%20url_like%20WHERE%20user_id%20IN%20(SELECT%20uid2%20FROM%20friend%20WHERE%20uid1%20%3D%20me())

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