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

Facebook API变更后,能否获取公开帖子的点赞/反应及评论数据?

Can You Still Retrieve Public Post Likes/Reactions After Facebook's 2018 API Restrictions?

Short answer: Yes, but only if you qualify for and are approved for Facebook's Academic Research API—this is specifically designed for non-commercial educational/academic projects like yours.

Why Graph API Explorer Didn't Work

The regular Graph API (and tools like Graph API Explorer) have very limited access to public post data post-2018. For standard users, you can't access aggregated reaction counts or comment data from public pages unless you have a specific use case approved under the academic program. That's why your initial attempt didn't yield the likes/reactions you needed.

Academic Research API: Your Solution

Facebook's Academic Research API is tailored for researchers and students needing access to public Facebook data for educational purposes. For your project (pulling anonymized public posts, comments, and reaction counts from pages like CNN or Daily Mail), this is exactly the right path. Here's what you need to know:

  • Eligibility: You must be affiliated with an academic institution, and your project must be non-commercial, focused on research/education, and comply with Facebook's data use policies (including anonymizing any user-specific data).
  • Approval Process: You'll need to submit an application through Facebook's research portal, detailing your project objectives, how you'll use the data, and how you'll ensure privacy/anonymization. Be specific about your use case (e.g., analyzing media engagement patterns for a university course) to improve your chances of approval.
  • Data Access: Once approved, you can access endpoints that include aggregated reaction counts (likes, loves, etc.) and comment metrics for public posts from verified pages. You can also retrieve anonymized comment data (without personal identifiers like usernames or profile links) as long as it's used for your academic project.

Example API Request (For Approved Academic Users)

To get aggregated reaction counts for posts from a public page, you'd use a request like this:

GET /{PAGE_ID}/posts?fields=id,message,reactions.summary(true).limit(0),comments.summary(true).limit(0)
  • The summary(true) parameter returns total counts for reactions/comments.
  • limit(0) skips retrieving individual reactions/comments, which helps with anonymization and stays within rate limits.

Key Notes to Remember

  • Strictly Academic Use: You can't use this data for commercial purposes, and you must adhere to all of Facebook's research terms.
  • Anonymization: Ensure any user data you collect is fully anonymized—avoid storing or sharing any personal identifiers.
  • Rate Limits: Academic users get higher rate limits than standard users, but you still need to plan your data collection to avoid hitting caps.

If you run into issues during the application process, Facebook's research support team can help clarify requirements specific to your project.

内容的提问来源于stack exchange,提问作者J. M. Zigzee

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.25 07:10:00