productivity
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.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.
Agent Surfaces
Machine-Readable Metadata
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. |