SocialAPIs
Sources
PricingBlogFAQContact
Back to Sources

Facebook Post Comments

Fetch comments from a Facebook post or reel, with pagination support via end_cursor.

PostsAvailablepostscommentsreplies

Ready to try this API?

Edit parameters and send a live request from your browser

Introduction

The Facebook Post Comments API retrieves all comments under a given Facebook post or reel including nested replies and top reactions.


What does this API extract?

  • ๐Ÿ’ฌ Comment text
  • ๐Ÿ‘ค Author information
  • ๐Ÿ“Š Reactions and reply count
  • ๐Ÿ“Ž Media attachments
  • ๐Ÿงต Pagination tokens
  • ๐Ÿ”— Reply info (feedback ID and expansion token) when include_reply_info is enabled

Input options

  • link: Facebook post or reel URL
  • end_cursor (optional): For pagination
  • include_reply_info (optional, boolean): Set to true to include comment_feedback_id and expansion_token in each comment. Use these values with the Facebook Post Comment Replies endpoint to fetch replies.
json
1{
2  "link": "https://www.facebook.com/reel/1884897151992610/",  
3  "include_reply_info": true  
4}

Output example

json
1{
2  "data": {  
3    "comments": [  
4      {  
5        "comment_id": "Y29tbWVudDoxMDgyMDA4MDE...",  
6        "comment_text": "She's got a very pretty face...",  
7        "author": {  
8          "name": "Alison Lyons",  
9          "profile_picture": "https://..."  
10        },  
11        "feedback": {  
12          "reaction_count": "215",  
13          "replies_count": 94  
14        },  
15        "comment_feedback_id": "ZmVlZGJhY2s6MTA4MjAwODAxMDE1Njg1NF84MzI4OTYyMjg5NjAwNzU=",  
16        "expansion_token": "MjoxNzczNTczMDExOgF_TFQFOvqXt0sH7qLCg19ICxHcXr5Gp9fi..."  
17      }  
18    ]  
19  }  
20}

Note: comment_feedback_id and expansion_token only appear when include_reply_info is set to true.


Conclusion

Use this API to monitor public engagement on your content, moderate discussions, or analyze audience feedback. Enable include_reply_info to get the tokens needed to fetch comment replies.

About the Facebook Post Comments API

The Facebook Post Comments endpoint is part of SocialAPIs' unified REST API for public social-media data. Fetch comments from a Facebook post or reel, with pagination support via end_cursor. It belongs to the Posts category and follows the same auth, pagination, and error-handling conventions as every other endpoint on the platform โ€” so any code you write for one transfers cleanly to the others.

postscommentsreplies

What you can do with this endpoint

The Facebook Post Comments endpoint is most often combined with other SocialAPIs endpoints to power the workflows below. Each one is achievable on the Free tier for evaluation; scale up to Pro or Ultra when you move to production.

Building a unified dataset

Pipe the GET response straight into BigQuery, Postgres, Airtable, or a Google Sheet via n8n / Make / Zapier. The response is structured JSON โ€” no HTML parsing, no headless browser, no upstream OAuth.

Powering an AI agent (MCP)

The same endpoint is exposed as a tool in the SocialAPIs MCP server, so Claude Desktop / ChatGPT custom integrations / Cursor / any MCP-aware client can call it directly inside a chat. No glue code, no separate auth โ€” the user's API token does both.

Scheduled monitoring & alerts

Schedule a recurring call (cron, GitHub Actions, n8n schedule), diff the latest response against the previous run, and notify Slack / email / Telegram when a meaningful change appears. The response shape is stable across calls so diffs stay reliable.

Backfilling a product feature

If you're building a feature on top of public social data (lead enrichment, brand monitoring, competitive intelligence, resale arbitrage), this endpoint usually replaces a brittle in-house scraper that broke every time Facebook tweaked its HTML. Same dataset, real-time, with an SLA.

Working code example

All SocialAPIs endpoints take your API token in the x-api-token header. Grab yours from your dashboard (or create a free account at /auth/signup โ€” 200 free calls per month, no credit card).

curl -X GET "https://api.socialapis.io/facebook/posts/comments?link=https%3A%2F%2Fwww.facebook.com%2Freel%2F1884897151992610%2F&include_reply_info=true" \
  -H "x-api-token: YOUR_API_TOKEN" \
  -H "Content-Type: application/json"

The response is JSON containing the requested data plus a request_id (echo it back in any support email โ€” it lets us pull the matching row from our request log in seconds). Detailed parameter schemas and copy-paste snippets in JavaScript, Python, PHP, Java, and Go are available in the playground above.

Pagination, rate limits, and error handling

Pagination

List-style endpoints return a next_cursor in the response. Pass it back in the next request to walk the full result set. Cursors are stable across calls โ€” safe to persist if you need to resume later.

Rate limits

10 req/min on the Free tier, 100 req/min on Pro / Ultra / Mega, higher dedicated limits on custom plans. Limit hits return HTTP 429 with a Retry-After header โ€” respect it and you'll never see a sustained block.

Errors

4xx = your request (bad params, missing auth, hit limit). 5xx = our side (transient โ€” retry with backoff). Every error response includes error_code, message, and a request_id for support.

Related endpoints in the Posts category

These endpoints share the same data model and auth as Facebook Post Comments. Most real-world integrations combine 2-3 of them.

Facebook Post ID

Extract the post ID from a Facebook post link.

Facebook Post Details

Retrieve full details of a Facebook post including reactions, media type, and publishing info.

Facebook Post Details (Extended)

Retrieve extended details of a Facebook post including views, video URLs, music info, and author verification status.

Facebook Post Comment Replies

Fetch replies to a specific comment on a Facebook post. Requires comment_feedback_id and expansion_token from the Facebook Post Comments endpoint with include_reply_info=true.

Facebook Post Attachment Details

Retrieve all media attachments (photos, videos) from a Facebook post by post_id.

Facebook Video Post Details

Fetch title, reaction stats, and play counts of a Facebook video post using video ID.

Frequently asked questions

Do I need to register a Facebook app or go through OAuth to use the Facebook Post Comments endpoint?

No. SocialAPIs handles the upstream auth and infrastructure on our side. You just send a bearer token (your SocialAPIs API token) and call the endpoint. No Facebook app review, no OAuth scope dance, no expiring user access tokens. This is the primary reason most teams move off the Graph API to us.

How much does a single call to this endpoint cost in credits?

One credit per successful response. The exact cost is shown in the dashboard under "Usage" after every call. Failed requests (4xx errors caused by bad input) do not consume credits.

Is the data real-time or cached?

Real-time. Each call fetches from the upstream source at the moment you call us โ€” we don't cache responses between users. The exception is the Ads Library endpoints, which return Meta's own snapshots and therefore lag by 24-48 hours because Meta itself indexes them on that cadence (not us).

Can I use this endpoint inside Claude Desktop, ChatGPT, or another AI agent?

Yes. The SocialAPIs MCP server exposes every endpoint as an MCP tool, so any MCP-aware client (Claude Desktop, the ChatGPT Custom Integrations beta, Cursor, Cline) can call it directly inside a chat. The MCP server uses the same API token as direct HTTP calls, so your credit balance, rate limits, and usage history are unified across surfaces.

What happens if my call fails or returns an unexpected shape?

Every response โ€” success or error โ€” includes a request_id in both the body and the x-request-id header. Email it to support and we can pull the full request log (params, upstream response, timing, error trace) within minutes. We retain the log for 30 days on standard plans and indefinitely on enterprise. Don't ship a workaround for an edge case without checking with us first โ€” it's usually a two-line server fix.

Heads up if you're migrating from the Graph API

Some fields Meta's official Graph API used to return are no longer publicly accessible (page email, exact follower counts on small pages, post audience targeting). Where we can derive them from other public signals, we do; where we can't, the field will be absent from the response (we don't fabricate values). The full list of "what's still returnable in 2026" lives in the docs โ€” start there before assuming a field is broken on our side.

Ready to call Facebook Post Comments?

Use the playground at the top of this page to send a live request against your account โ€” or grab the curl above and run it from your terminal. Free accounts get 200 calls per month, enough to integrate, prototype, and ship a working demo before deciding whether to upgrade.

Create a free API key ย ยทย  See pricing ย ยทย  Browse all endpoints