Facebook API
Posts, comments, accounts.
The Facebook API lets you read post details, comments, account profiles and an account's posts, with no Facebook account or login. Each call costs 2 credits ($0.004 to $0.0067); failed calls are free. Facebook does not give the author's follower count with a post, so that field is returned as null. Use it over HTTP with an API key, or through MCP from your AI client. Last tested 2026-11-19.
Last tested: Last updated:
/v1/detail200 OK2 creditsplatform: "facebook" · url: "https://www.facebook.com/reel/2166091230582141"nullviews 3,601,010titleauthor.followersmetrics.collectsmetrics.reposts+24 actions.
One response format.
Open a row to see its request. Its full parameters and response fields are on its own page.
DetailOne post by link: text, author, likes, comment count, views and publish time./v1/detail2 credits≈ $0.0067
platformurlcurl https://socialtoai.app/v1/detail \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "facebook", "url": "https://www.facebook.com/reel/2166091230582141" }'POST /v1/detailYour key goes in the Authorization headerCommentsThe comments under one post: text, likes, reply count and time./v1/comments2 credits≈ $0.0067$0.67 per 1,000 (up to 10 a page)
platformidcurl https://socialtoai.app/v1/comments \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "facebook", "id": "1650176549811048" }'POST /v1/commentsYour key goes in the Authorization headerUser ProfileOne account: name, bio and followers./v1/user_profile2 credits≈ $0.0067
platformid or username or urlcurl https://socialtoai.app/v1/user_profile \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "facebook", "id": "100044561550831" }'POST /v1/user_profileYour key goes in the Authorization headerUser PostsThe recent posts of one account./v1/user_posts2 credits≈ $0.0067$2.23 per 1,000 (up to 3 a page)
platformid or username or urlcurl https://socialtoai.app/v1/user_posts \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "facebook", "id": "100044561550831" }'POST /v1/user_postsYour key goes in the Authorization headerNot offered on Facebook: search and trending.
Compared with Instagram: Facebook posts also give shares but do not give hashtags; its accounts do not give verified or following.
What a whole job costs.
| The job | How it adds up | Credits | About |
|---|---|---|---|
| Read 1,000 Facebook comments | usually 10 a page, 100 pages | 200 credits | about $0.67 |
| Backfill one Facebook account: a list of 200 posts and 20 in full | 67 list pages + 20 full reads | 174 credits | about $0.58 |
| Watch 1 Facebook account daily, at most a month | 12 credits × 31 days | 372 credits | about $1.24 |
Priced at the $10 pack; larger purchases bring it down. A watch runs only while it is on, and you can pause it at any time. There is no subscription.
Or skip the parameters.
Just ask.
Connect SocialToAI once over MCP. Your AI picks the calls, and you see what each one cost.
Read the comments on this Facebook post and tell me what people complain about.
- detailthe post you pasted2 credits
- commentsfirst 3 pages6 credits
How big is this Facebook account, and what has it posted lately?
- user_profilethe account you named2 credits
- user_postsits latest page2 credits
Look up this Facebook account and tell me who it is.
- user_profilethe account you named2 credits
Same shape on every platform.
Learn it once.
A Facebook post and a Xiaohongshu note come back with the same field names. What a platform cannot give comes back as null.
{ "platform": "facebook", "id": "…", "ref": "…", "approx": [], "extra": {}, "type": "content", "url": "https://example.com/…", "format": "video", "title": null, "text": "…", "published_at": "2025-09-15T16:01:55.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": true, "followers": null }, "metrics": { "likes": 8287, "comments": 2668, "shares": 1100, "collects": null, "views": 3601010, "reposts": null }, "images": [], "hashtags": null, "is_pinned": null}titleauthor.followersmetrics.collectsmetrics.repostshashtagsis_pinned{ "platform": "xiaohongshu", "id": "…", "ref": "…", "approx": [], "extra": {}, "type": "content", "url": "https://example.com/…", "format": "image", "title": "…", "text": "…", "published_at": "2026-10-09T01:00:34.000Z", "author": { "id": "…", "username": "…", "name": "…", "verified": null, "followers": null }, "metrics": { "likes": 927, "comments": 122, "shares": 256, "collects": 59, "views": null, "reposts": null }, "images": ["https://example.com/…", "https://example.com/…"], "hashtags": ["…", "…"], "is_pinned": false}author.verifiedauthor.followersmetrics.viewsmetrics.reposts4 tools read Facebook.
All toolsDoes Facebook have an official API?
Facebook's Graph API can read public Page posts, comments and metadata only through the Page Public Content Access feature, which requires App Review and business verification and may require additional contracts.
Source: Facebook's developer documentation, checked 2026-10-17.
1,000 posts here: about 334 facebook.user_posts calls (typically 3 a page), 668 credits, $2.23 at the first pack. Estimate your cost
- Comments API, every platformWhich platforms give comments, how many a page, at what price.
- Facebook MCP serverLet your AI read Facebook.