---
title: "Facebook API · SocialToAI"
canonical: https://socialtoai.app/platforms/facebook/
updated: 2026-10-17
---

# Facebook API

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.

- Page: https://socialtoai.app/platforms/facebook/
- Last updated: 2026-10-17
- Last tested: 2026-11-19

## Actions

| Action | What it returns | Selected by | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- | --- |
| `detail` | One post by link: text, author, likes, comment count, views and publish time. | — | `facebook.detail` | 2 | [Facebook Detail API](https://socialtoai.app/facebook-detail-api.md) |
| `comments` | The comments under one post: text, likes, reply count and time. | — | `facebook.comments` | 2 | [Facebook Comments API](https://socialtoai.app/facebook-comments-api.md) |
| `user_profile` | One account: name, bio and followers. | — | `facebook.user_profile` | 2 | [Facebook User Profile API](https://socialtoai.app/facebook-user-profile-api.md) |
| `user_posts` | The recent posts of one account. | — | `facebook.user_posts` | 2 | [Facebook User Posts API](https://socialtoai.app/facebook-user-posts-api.md) |

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.

Lighter for your AI: across 4 interfaces measured on the same recorded data, the platform's raw JSON is about 16,144 tokens and SocialToAI's answers about 4,526, 71% fewer (2026-11-06; the method is on the "How we measure" page).

## Example call

```bash
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"
  }'
```

## Fields Facebook cannot give

These fields are always null on the calls named, and are listed in the response's `unavailable`.

| Field | On |
| --- | --- |
| `title` | detail, user_posts |
| `author.followers` | detail, user_posts |
| `metrics.collects` | detail, user_posts |
| `metrics.reposts` | detail, user_posts |
| `hashtags` | detail, user_posts |
| `is_pinned` | detail, user_posts |
| `url` | comments |
| `parent_id` | comments |
| `root_id` | comments |
| `verified` | user_profile |
| `following` | user_profile |
| `posts_count` | user_profile |
| `author.username` | user_posts |
| `author.verified` | user_posts |
| `metrics.shares` | user_posts |
| `metrics.views` | user_posts |

## 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.

## Ask in your AI

- Read the comments on this Facebook post and tell me what people complain about. → detail, comments × 3: 8 credits

- How big is this Facebook account, and what has it posted lately? → user_profile, user_posts: 4 credits

- Look up this Facebook account and tell me who it is. → user_profile: 2 credits

[Facebook MCP Server](https://socialtoai.app/mcp/facebook.md)

## Ready-made tools that read Facebook

- [Comment analysis](https://socialtoai.app/tools/comment-insights.md): The topics in their comments and how big each is, plus questions, buying intent and complaints
- [Account snapshot](https://socialtoai.app/tools/account-watch.md): What each one posted lately, and which posts beat its usual numbers
- [Creator profile](https://socialtoai.app/tools/creator-card.md): Their accounts on other platforms, the numbers on each, and how sure the match is
- [Bulk link data](https://socialtoai.app/tools/batch-stats.md): One row per link with its numbers as they are now. Links that no longer work are marked

## 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](https://developers.facebook.com/docs/features-reference/page-public-content-access), 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](https://socialtoai.app/free-tools/api-cost-estimator.md)

[Facebook official API: access, prices and limits](https://socialtoai.app/does-facebook-have-an-api.md)

- [Comments API, every platform](https://socialtoai.app/comments-api.md): Which platforms give comments, how many a page, at what price.
- [Facebook MCP server](https://socialtoai.app/mcp/facebook.md): Let your AI read Facebook.
