social
Facebook MCP, CLI, and Lua Integration for AI Agents
Facebook integration docs for AI agents: MCP gateway setup, Facebook CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write Bearer token auth
Facebook for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
facebook- route_slug
facebook- package
facebook- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Facebook CLIHeadless setup and direct function calls. Facebook MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Facebook MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Facebook.
Claude Code Facebook MCP setup for Claude Code. Cursor Facebook MCP setup for Cursor. Codex Facebook MCP setup for Codex. OpenAI Agents Facebook MCP setup for OpenAI Agents SDK. Claude Agent SDK Facebook MCP setup for Claude Agent SDK. Vercel AI SDK Facebook MCP setup for Vercel AI SDK. LangChain Facebook MCP setup for LangChain. LangGraph Facebook MCP setup for LangGraph. CrewAI Facebook MCP setup for CrewAI. MCP clients Facebook MCP setup for Generic MCP Clients.
Facebook CLI Matrix
Use these pages for direct Facebook CLI workflows in scripts, CI, cron, and agent wrappers.
CI Facebook CLI for CI. Cron Jobs Facebook CLI for cron jobs. Shell Scripts Facebook CLI for shell scripts. Headless Automation Facebook CLI for headless automation. Coding Agents Facebook CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
facebook.facebook_list_pages | Read read | 2 | List all Facebook Pages the authenticated user manages. Returns page IDs, names, and access tokens for further operations. |
facebook.facebook_get_page | Read read | 2 | Get details for a specific Facebook Page by its ID. Returns page name, category, follower count, and other metadata. |
facebook.facebook_list_posts | Read read | 5 | List posts published by a Facebook Page. Returns post IDs, messages, creation times, and engagement metrics. |
facebook.facebook_create_post | Write write | 4 | Publish a new post on a Facebook Page. The post will appear on the Page's timeline immediately unless scheduled. |
facebook.facebook_get_post | Read read | 2 | Get details for a specific Facebook post by its ID. Returns the post content, creation time, and engagement metrics. |
facebook.facebook_list_insights | Read read | 5 | Get engagement and performance metrics (insights) for a Facebook Page. Supports metrics like page_impressions, page_engaged_users, page_post_engagements, and more. |
facebook.facebook_get_current_user | Read read | 1 | Get the authenticated user's Facebook profile information, including name and user ID. |