Facebook Graph API中能否获取用户点赞的所有帖子?及实现方法
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_likespermission only grants access to public Pages, apps, and groups that the user has liked. It never included individual posts. That's exactly why yourme/likescall 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

