Facebook Auto-Poster API
Automate your social media presence. This API enables instant publishing or drafting of text updates, photo posts, and video content to any managed Facebook Page via public media URLs.
Connect this API to an AI agent Browse all specs
What you can do with Facebook Auto-Poster API via MCP
Every endpoint below becomes a governed tool your AI agent (Claude, ChatGPT, or a customer-facing VX agent) can call — with scoped permissions, sandbox testing, and audit logs.
| Method | Path | Operation | Description |
|---|---|---|---|
| POST | /{pageId}/feed |
postTextMessageToPage | Publish a text post or a post with an embedded link |
| POST | /{pageId}/photos |
postPhotoToPage | Publish a photo post to the Facebook Fanpage |
| POST | /{pageId}/videos |
postVideoToPage | Publish a video file to the Facebook Fanpage |
Usage guide
Getting Credentials for Facebook API
To use this integration, you need a Facebook Page Access Token. Follow these steps to obtain your credentials:
Step 1: Create a Meta Developer App
- Go to Meta for Developers and log in with your Facebook account.
- Navigate to My Apps and click Create App.
- Select Other > Business as your app type.
- Enter your App Name and Contact Email, then click Create App.
Step 2: Generate Page Access Token via Graph API Explorer
- On the top menu, go to Tools > Graph API Explorer.
- In the right sidebar under Meta App, select the app you just created.
- Under User or Page, select Get Page Access Token.
- Authenticate your Facebook account and grant the app access to the specific Facebook Page you want to manage.
- Add necessary permissions in the "Permissions" dropdown:
- For Auto-Posting: Add
pages_manage_posts,pages_show_list. - For Reading Insights/Posts: Add
pages_read_engagement,pages_read_user_content.
- For Auto-Posting: Add
- Click Generate Access Token.
Step 3: Authenticate the Agent
Copy the generated Access Token (a long string of characters) and paste it into the Authentication/API Key field of this plugin.
Important Note: Short-lived access tokens expire after 1-2 hours. To keep your agent running continuously, please use the Access Token Debugger to extend it to a Long-Lived Page Access Token (which never expires).
How to use this spec
- Create a free VX Agents account (sandbox tools included).
- Open the marketplace and connect “Facebook Auto-Poster API” to an agent.
- Expose it as an MCP server for Claude/ChatGPT, or chat with it directly.