Facebook 页面“点赞”和“点赞”之间有什么区别?和外部 URL“喜欢”?并且“user_likes”是否会增加?权限范围可以同时访问两者吗?

发布于 2024-12-04 23:52:02 字数 503 浏览 0 评论 0 原文

我想提取用户所有 Facebook“喜欢”的列表,无论它们是 Facebook 页面还是外部 URL。

示例:

如果您“喜欢”Facebook 平台,我知道我可以通过 /me/likes API 调用。

但是,如果您喜欢 外部URL,我不知道如何获取它。两者都应该通过 /me/likes 调用拉取吗?或者是否有另一个调用来处理外部喜欢

此外,新闻源/流喜欢怎么样?例如,如果我“喜欢”我在信息流中看到的照片、视频、状态或链接,可以通过 API 访问吗?如果是这样,如何访问它?

I'd like to pull a list of all Facebook "Likes" for a user, whether they are Facebook pages or external URLs.

Example:

If you "Like" the Facebook Platform, I know I can see it via the /me/likes API call.

However, if you like an external URL, I'm not sure how to pull that. Are both supposed to be pulled via the /me/likes call? Or is there another call to handle external likes?

Further, what about newsfeed / stream likes? For example, if I "Like" a photo, video, status or link that I see in my stream, is that accessible via the API? If so, how is this accessed?

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

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

发布评论

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

评论(2

淑女气质 2024-12-11 23:52:02

是的,user_likes 可以让您访问两者。

您可以通过 Graph API 访问外部点赞端点 /me/likes,只要它们不是文章。类型为“文章”的对象并不代表现实世界的对象,因此,我们不会提供个人资料。我们在 Open Graph 文档页面上提到了这一点(尽管很模糊):https://developers.facebook.com/docs/opengraph/#types

所以如果你去我的假的电影对象页面位于

http://fbsb.hoodlu.ms/so_7436857/video2.html

和点击“赞”,当您在 赞时,就会显示该赞rel="nofollow">https://graph.facebook.com/me/likes

使用 Graph API 浏览器进行尝试:

https://developers. facebook.com/tools/explorer/?method=GET&path=me%2Flikes

如果您想要某人喜欢的网址,请使用此FQL 查询:

SELECT url FROM url_like WHERE user_id = me()

更多信息请访问 https://developers.facebook.com/docs/reference/fql/url_like/

如果您想从帖子、照片、视频等访问点赞,则需要使用点赞 FQL表。要提取当前用户的点赞(帖子/照片/视频):

SELECT user_id, object_id, post_id FROM like WHERE user_id=me()

从那里,您可以查询帖子的 stream 表以获取更多信息。

like 表文档:https://developers.facebook.com /docs/reference/fql/like/

stream 表文档:https://developers.facebook.com /docs/reference/fql/stream/

Yes, user_likes will give you access to both.

You can access external likes as you wish through the Graph API endpoint /me/likes, as long as they're not articles. Objects with type "article" do not represent real-world objects and as such, we don't provide on a person's profile. We mention this (albeit obscurely) on the Open Graph documentation page: https://developers.facebook.com/docs/opengraph/#types

So if you go to my fake movie object page at

http://fbsb.hoodlu.ms/so_7436857/video2.html

and click like, that will show up when you access your likes on https://graph.facebook.com/me/likes.

Try it using the Graph API explorer:

https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Flikes

If you want the URLs that someone has liked, use this FQL query:

SELECT url FROM url_like WHERE user_id = me()

More information is available at https://developers.facebook.com/docs/reference/fql/url_like/.

If you want to access the likes from a post, photo, video, etc. you'll need to use the like and stream FQL tables. To just pull out the likes (of posts/photos/videos) for the current user:

SELECT user_id, object_id, post_id FROM like WHERE user_id=me()

From there, you would query the stream table for the post to get more information.

like table documentation: https://developers.facebook.com/docs/reference/fql/like/.

stream table documentation: https://developers.facebook.com/docs/reference/fql/stream/

她如夕阳 2024-12-11 23:52:02

Facebook 现在有两种读取点赞数的方法。如果您想获得外部 URL 的点赞,请尝试以下操作:

http://graph.facebook.com/me/og.likes/[ID_FACEBOOKOBJECT]

如果您希望从内部 Facebook 页面(粉丝页面、个人资料、照片等)获得点赞,请尝试以下操作:

http://graph.facebook.com/me/likes/[ID_FACEBOOKOBJECT]

结账:https://developers.facebook.com/tools/explorer

Facebook now has two ways to read likes. If you would like to get the likes of an external URL you try this:

http://graph.facebook.com/me/og.likes/[ID_FACEBOOKOBJECT]

And if you wish get the likes from an internal Facebook page (fan page,profile,photo like) try this:

http://graph.facebook.com/me/likes/[ID_FACEBOOKOBJECT]

Checkout: https://developers.facebook.com/tools/explorer

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