# Facebook MCP server for AI agents

> Give Claude, Cursor or any MCP client Facebook data: 5 endpoints from $0.043 a call, no Facebook login. Your AI finds the endpoint, says the price and fetches.

Canonical page: https://okdata.online/mcp/facebook/

## Connect your AI in one sentence

```text
Set up okdata for me by following https://okdata.online/agents.md. Here is my okdata API key: okd_…. Keep it safe and use it for all okdata calls.
```

## What it answers

| Question | Endpoint | Price |
|---|---|---|
| Facebook post search: Search public Facebook posts by keyword, optionally within dates: text, link, time, reactions, comments and shares, and the page that posted. Date-filtered pages can still include posts outside the range. | [facebook.posts.search](https://okdata.online/apis/facebook/posts/search/) | $0.043 per call · about 10 posts per page |
| Facebook page ID lookup: The numeric ID of a public Facebook page or profile from its path (the NASA in facebook.com/NASA), which facebook.pages.posts.list takes. | [facebook.pages.get](https://okdata.online/apis/facebook/pages/get/) | $0.043 per call |
| Facebook page posts: A public Facebook page's posts, newest first: text, link, time, reactions, comments and shares. | [facebook.pages.posts.list](https://okdata.online/apis/facebook/pages/posts/list/) | $0.043 per call · about 3 posts per page |
| Facebook post comments (coming soon): Comments under a public Facebook post: text, time, reactions and reply count. Commenters are not named. ext.expansion_token is what facebook.comments.replies.list takes. | [facebook.posts.comments.list](https://okdata.online/apis/facebook/posts/comments/list/) | $0.043 per call · about 10 comments per page |
| Facebook comment replies (coming soon): Replies under one comment of a public Facebook post: text, time and reactions. Repliers are not named. | [facebook.comments.replies.list](https://okdata.online/apis/facebook/comments/replies/list/) | $0.043 per call · about 10 comments per page |

## Two calls

1. `find {"query":"facebook posts"}`: free
2. `call {"capability":"facebook.posts.search","query":"espresso machine"}`: $0.043 per call · about 10 posts per page

## Skill package

- `okdata-facebook`: https://okdata.online/.well-known/agent-skills/okdata-facebook/SKILL.md · https://okdata.online/skills/okdata-facebook.zip

[Every Facebook endpoint](https://okdata.online/apis/facebook/) · [MCP server](https://okdata.online/mcp/) · [Integrations](https://okdata.online/integrations/)
