KosmoKrator

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_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Facebook MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Facebook.

Facebook CLI Matrix

Use these pages for direct Facebook CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

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