You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Facebook Graph API中能否获取用户点赞的所有帖子?及实现方法

Getting User-Liked Posts via Graph API v2.12

Hey there, let's clear up the confusion around this—this is a common pain point with Facebook's API and privacy shifts:

Can you still fetch all posts a user has liked?

Nope, you can't—even in v2.12. Here's the breakdown:

  • The user_likes permission only grants access to public Pages, apps, and groups that the user has liked. It never included individual posts. That's exactly why your me/likes call only returns Pages, not posts.
  • Facebook tightened its data privacy policies years ago, restricting third-party app access to a user's liked posts entirely. This applies to all recent API versions, including v2.12.

Why did og.likes return an empty list?

The og.likes endpoint isn't meant to fetch all posts a user has liked—it's designed to get likes on a specific Open Graph object (e.g., a single post or article). If you tried using it to pull a user's entire liked post history, that's not its intended use case. Even for a specific post, you'd need additional permissions to access its likes, but that doesn't solve your original goal of getting all liked posts.

Are there any workarounds?

Unfortunately, no. There's no Graph API endpoint that lets you retrieve a complete list of posts a user has liked anymore. Facebook's policies prioritize user control over their personal data, so this broad access is no longer permitted for third-party applications.

If your use case is letting a user view their own liked posts, they'd need to access their Facebook profile directly—your app can't pull that data on their behalf.

内容的提问来源于stack exchange,提问作者adm_res

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:36:45