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-10-17.
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
platformurlcurl https://api.socialtoai.com/v1/detail \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -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
platformidcurl https://api.socialtoai.com/v1/comments \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -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
platformid or username or urlcurl https://api.socialtoai.com/v1/user_profile \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -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
platformid or username or urlcurl https://api.socialtoai.com/v1/user_posts \ -H "Authorization: Bearer $SOCIALTOAI_KEY" \ -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.
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": [], "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": [], "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.