SocialToAIStart freeConsole

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.

4 of 6actions available
From 2 creditsper call
71% fewer tokensfor your AI than the raw JSON (4 interfaces measured)

Last tested: Last updated:

POST/v1/detail200 OK2 credits
platform: "facebook" · url: "https://www.facebook.com/reel/2166091230582141"
@…·
likes 8,287comments 2,668shares 1,100collects nullviews 3,601,010
Always null here:titleauthor.followersmetrics.collectsmetrics.reposts+2
itemsOne object
billingThis call2 credits
Sample dataFull response

4 actions.
One response format.

Open a row to see its request. Its full parameters and response fields are on its own page.

ActionsCredits per call
DetailOne post by link: text, author, likes, comment count, views and publish time./v1/detail2 credits≈ $0.0067
You send
platformurl
Facebook Detail API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
CommentsThe 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)
You send
platformid
Facebook Comments API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
User ProfileOne account: name, bio and followers./v1/user_profile2 credits≈ $0.0067
You send
platformid or username or url
Facebook User Profile API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header
User PostsThe recent posts of one account./v1/user_posts2 credits≈ $0.0067$2.23 per 1,000 (up to 3 a page)
You send
platformid or username or url
Facebook User Posts API: All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl 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 header

Not 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 jobHow it adds upCreditsAbout
Read 1,000 Facebook commentsusually 10 a page, 100 pages200 creditsabout $0.67
Backfill one Facebook account: a list of 200 posts and 20 in full67 list pages + 20 full reads174 creditsabout $0.58
Watch 1 Facebook account daily, at most a month12 credits × 31 days372 creditsabout $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.

You ask01

Read the comments on this Facebook post and tell me what people complain about.

Your AI calls
  • detailthe post you pasted2 credits
  • commentsfirst 3 pages6 credits
Total8 credits
You ask02

How big is this Facebook account, and what has it posted lately?

Your AI calls
  • user_profilethe account you named2 credits
  • user_postsits latest page2 credits
Total4 credits
You ask03

Look up this Facebook account and tell me who it is.

Your AI calls
  • user_profilethe account you named2 credits
Total2 credits

Facebook MCP Server

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.

Facebookdetail · 2 credits
{  "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}
Null on Facebook:titleauthor.followersmetrics.collectsmetrics.repostshashtagsis_pinned
Xiaohongshudetail · 12 credits
{  "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}
Null on Xiaohongshu:author.verifiedauthor.followersmetrics.viewsmetrics.reposts
Sample dataThe fields are always there; only the values differ.

4 tools read Facebook.

All tools

Does 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

Facebook official API: access, prices and limits

The same calls work on 17 more.

All platforms and prices

Your AI is one URL away
from all of social media.

100 credits on sign-up, no card needed