Connect Facebook Pages to your Wiro AI agent
Publish posts, photos and videos to your Facebook Pages and read their engagement.
Someone asked something under yesterday's brunch post. Tell them we take bookings for groups of 6 or more.
Yesterday's post on the Copper Kettle Bistro Page, Sunday brunch is back, has 23 comments, and one is a question: a guest asks whether you take bookings for a party of eight. With your OK, I replied to that comment as the Page: Yes, we take bookings for groups of 6 or more. The other comments tag friends or say thanks, so nothing else is waiting for an answer.
Overview
What Facebook Pages does for your agent
Works on the Facebook Pages you pick, through a Facebook sign-in with your own Meta app or a Business Manager System User token. The agent publishes text, link, photo and video posts now or at a set time, posts Reels and stories, comments and replies as the Page and reads post and Page insights such as views, reactions and follows. Each Page must give the account behind the connection the right tasks to post, moderate and read insights, and the agent posts Reels and stories at once, so a Scheduled Task posts them at a set time.
Use cases
What your Wiro agent can do with Facebook Pages
Schedule next week's Page posts in one sitting
Share the week's plan in Chat: a text, link or photos for each day. The agent creates every post with its own date and time, 10 minutes or more ahead, and Facebook holds them unpublished until then. It then lists the Page's scheduled posts so you can check the queue.
Answer comments as the Page every morning
A Scheduled Task reads new comments on the Page's recent posts, photos and videos, replies as the Page with answers from the notes you gave it, adds a picture when one helps, and lists the comments that need a person in Chat.
Get a monthly Page report on the first of the month
A Scheduled Task reads the Page's views, engagements, new follows, unfollows and follower change for the previous month, then each post's views, reactions, comments, shares and clicks, and writes a report in Chat with the posts worth repeating.
Launch a product with a Reel and a story
Give the agent one vertical MP4 of 3 to 60 seconds. It publishes the clip as a Reel with your description, then as a Page story that stays up for 24 hours, and tells you when both are live.
Post an event album with up to 10 photos
After an event, share up to 10 photo links and a couple of lines about the day. The agent puts them all in one post with a caption, published right away or at the time you pick.
Keep each store's Page up to date
Choose the Pages this agent may use when you connect, for example a Page for each store. Ask for a holiday-hours post and the agent writes a version for each Page with that store's opening times, then publishes or schedules them without touching Pages you did not pick.
How it works
How Facebook Pages works with Wiro
- 01
Deploy an agent, open its Connectors tab, choose Facebook Pages and sign in with your Facebook Pages account, or paste an API key.
- 02
Set each Facebook Pages action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.
- 03
Ask your agent for Facebook Pages work in Chat, or put it on a Scheduled Task that runs on its own.
Facebook Pages opens in a new window. Sign in there and allow access; this page updates by itself.
Sign In With Facebook PagesSchedule next week's Page posts in one sitting
Answer comments as the Page every morning
- Where it runsInside your agent. Its requests go straight from the agent to Facebook Pages.
- Where its data goes
graph.facebook.comrupload.facebook.com - How it signs inSign in to Facebook Pages with your own app, or connect with a key.
- AccountsAfter connecting, pick the Facebook Pages the agent may work with. It cannot reach any other.
What it can do
Actions your Wiro agent can take in Facebook Pages
By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.
Read-only 6 actions
Looks things up in Facebook Pages and changes nothing.
List Facebook Pages
Lists the Facebook Pages this connection can use: id, name, category and the tasks the connected account has on each.
Chat AllowScheduled Tasks Allow
List Facebook Page posts
Lists a Page's posts, newest first: published posts, scheduled posts, live stories or Reels, with id, time, text and link.
Chat AllowScheduled Tasks Allow
List comments on a Facebook Page post
Lists the comments on one of a Page's posts, photos or videos (or the replies to a comment): text, author name, time, likes and replies, and whether it is hidden.
Chat AllowScheduled Tasks Allow
Get Facebook post insights
Reads insights of a Page's posts: the given post ids, or its latest posts.
Chat AllowScheduled Tasks Allow
Get Facebook Page insights
Reads Page insights over a range of days: total views, engagements, new follows and unfollows, the follower count on the first and last day and its change, and unique viewers in the 28 days ending the last day.
Chat AllowScheduled Tasks Allow
Read other Facebook Pages data
Reads what the actions above do not cover, straight from the Facebook Pages API.
Chat AllowScheduled Tasks Allow
Create and send 6 actions
Creates or sends something new in Facebook Pages, such as a post, a message or an email.
Create a Facebook Page post
Publishes a text post on a Page, optionally with a link (Facebook shows its preview), now or at a scheduled time.
Chat AskScheduled Tasks Allow
Post photos to a Facebook Page
Publishes one photo, or a post of 2 to 10 photos, on a Page from public https image URLs (JPEG, PNG, GIF, BMP or TIFF; Facebook downloads them), with an optional caption, now or at a scheduled time.
Chat AskScheduled Tasks Allow
Post a video to a Facebook Page
Publishes a video on a Page from a public https URL (Facebook downloads and processes it; MP4 is safest), with an optional description and title, now or at a scheduled time.
Chat AskScheduled Tasks Allow
Post a Reel to a Facebook Page
Publishes a Reel on a Page from a public https URL of a vertical video (MP4, 9:16, 3 to 90 seconds, at least 540x960).
Chat AskScheduled Tasks Allow
Post a story to a Facebook Page
Publishes a Page story from a public https URL: an image (JPEG, PNG, GIF, BMP or TIFF, up to 10 MB) or a vertical video (MP4, 9:16, 3 to 60 seconds).
Chat AskScheduled Tasks Allow
Comment on a Facebook Page post
Adds a comment as the Page on one of its posts, photos or videos, or replies to a comment.
Chat AskScheduled Tasks Allow
Change and delete 1 action
Changes or deletes what is already in Facebook Pages.
Make other Facebook Pages changes
Sends any other change straight to the Facebook Pages API.
Chat AskScheduled Tasks Allow
How to connect
Connect Facebook Pages to Wiro
Open the agent's Connectors tab, choose Facebook Pages and sign in with your account. The consent screen shows what the agent can reach.
What the Connect dialog asks for
Pick one way in the Connect dialog: it asks only for what that way needs.
Your own app
App ID and App Secret from your own Facebook Pages app, then you sign in to Facebook Pages in its own window.
| Field | About |
|---|---|
| App IDRequired |
|
| App SecretRequired |
|
API key
The key, pasted once instead of a sign-in.
| Field | About |
|---|---|
| System User TokenRequired | Use a token generated for a Meta Business Manager System User. It is used only on the server to discover assigned Pages and derive each selected Page access token; the agent receives only those Page-scoped tokens.
No App ID or App Secret is entered here for this direct connection. The Meta app used to generate the token must not enforce |
Troubleshooting
Troubleshooting Facebook Pages
What to check when Facebook Pages stops working for your agent.
- Your own app's sign-in fails Check your app's settings in Facebook Pages: the redirect URL shown in the Connect dialog must be added there, and the client secret you pasted must be the app's current one. Then sign in again.
- Access revoked in Facebook Pages If the access is removed in Facebook Pages, or the sign-in can no longer renew, the connection reads Reconnect needed. Open the agent's Connectors tab, choose Facebook Pages and Reconnect.
- An invalid or expired key If Facebook Pages refuses the key, for example after it was deleted or expired, the agent's Facebook Pages actions fail. Create a new key in Facebook Pages, then open the agent's Connectors tab, choose Facebook Pages and paste it in place of the old one.
- Limits set by Facebook Pages Facebook Pages limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your Facebook Pages plan.
For developers
Connect Facebook Pages from your own product
Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.
- 01
Read the connector
Detail answers without a session: what the connector needs and the tools it gives an agent.
POST /AgentConnector/Detail { "slug": "facebook-pages" }Response { "result": true, "errors": [], "agentconnectors": [ { "slug": "facebook-pages", "title": "Facebook Pages", "category": "social", "authtype": "provider-oauth", "credentialfields": [ { "name": "appid", "label": "App ID", "required": true, "secret": false, "format": "text" }, { "name": "appsecret", "label": "App Secret", "required": true, "secret": true, "format": "password" }, { "name": "systemusertoken", "label": "System User Token", "required": true, "secret": true, "format": "password" } ], "accountpickers": [ { "key": "pages", "label": "Facebook Pages", "multiple": true } ], "tools": [ { "name": "list_pages", "readonly": true }, { "name": "list_posts", "readonly": true } ] } ] } - 02
Start the sign-in
Connect answers with the vendor's sign-in page. Open it in the browser of the person who owns the account.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "facebook-pages", "mode": "oauth", "values": { "appid": "YOUR_APPID", "appsecret": "YOUR_SECRET" }, "redirecturl": "https://your-app.example.com/connectors/return" }Response { "result": true, "errors": [], "status": "pending", "authorizeUrl": "https://vendor.example.com/oauth/authorize?client_id=...&state=..." } - 03
Come back to your page
After the consent screen the browser returns to your redirect URL with the outcome in its query. Read the status next; the query is only a reason to look.
Your redirect URL https://your-app.example.com/connectors/return?connector_connected=true https://your-app.example.com/connectors/return?connector_error=authorization_denied - 04
Or connect with a key
The same call with mode "key" connects with a pasted key instead of a sign-in.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "facebook-pages", "mode": "key", "values": { "systemusertoken": "YOUR_SECRET" } }Response { "result": true, "errors": [], "status": "connected", "applied": 1, "restart": "scheduled" } - 05
Read the status
connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.
POST /UserAgent/ConnectorList { "useragentguid": "YOUR_AGENT_GUID" }Response { "result": true, "errors": [], "useragentconnectors": [ { "slug": "facebook-pages", "title": "Facebook Pages", "authtype": "provider-oauth", "status": "connected", "accounts": {}, "savedvariables": [ "appid", "appsecret" ], "lasterror": null } ] } - 06
List the accounts
After connecting, list what the agent may use. It cannot reach anything else.
POST /UserAgent/ConnectorAccounts { "useragentguid": "YOUR_AGENT_GUID", "slug": "facebook-pages" }Response { "result": true, "errors": [], "pickers": [ { "key": "pages", "label": "Facebook Pages", "multiple": true, "candidates": [ { "id": "1234567890", "name": "Example account" } ], "selected": [] } ] } - 07
Save the accounts
Every id is checked against a fresh list, then the agent uses them, with no restart for most changes.
POST /UserAgent/ConnectorSetAccounts { "useragentguid": "YOUR_AGENT_GUID", "slug": "facebook-pages", "accounts": { "pages": [ "1234567890" ] } }Response { "result": true, "errors": [], "restart": "scheduled" } - 08
Disconnect
Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.
POST /UserAgent/ConnectorDisconnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "facebook-pages" }Response { "result": true, "errors": [], "removed": true, "revoked": true, "restart": "scheduled" }
Questions
Facebook Pages and Wiro FAQ
What can a Facebook Pages AI agent do?
It publishes text posts with link previews, single photos or posts of up to 10 photos, videos, Reels and stories on the Pages you choose, and text, photo and video posts can wait for a scheduled time. It also lists a Page's posts, reads comments and replies as the Page, and reads post and Page insights such as views, reactions, follows and clicks.
How do I connect Facebook Pages to an AI agent?
Choose Facebook Pages on your agent's Connectors tab, or start from Chat and let the agent connect your Pages. One way is a Facebook sign-in through a Meta developer app of your own, with its App ID and App Secret and the Page permissions the Connect dialog lists. The other is a key: a token for a Meta Business Manager System User that has your Pages assigned. Then choose the Pages the agent may work with; the others stay out of its reach.
What access to my Page does the agent need?
The person or System User behind the connection needs the right task on each Page: CREATE_CONTENT to post, MODERATE to comment and ANALYZE to read insights. A System User token also needs the permissions the Connect dialog lists, with video publishing and insights added if you want those.
Can I automate Facebook Page posts and schedule them ahead?
Yes. Text posts, photo posts and videos take a publish time 10 minutes or more ahead, and Facebook keeps them unpublished until then; the agent can list the Page's scheduled posts to check them. Reels and stories publish right away, so for those the agent runs a Scheduled Task at the hour you want.
Does the agent need my approval before posting to my Page?
By default, yes in Chat: every post, comment or other change waits for your OK, while reading posts and insights runs without asking. On the approval card, Allow lets that one request through and Always Allow stops the questions for that action. Scheduled Tasks run these actions without a prompt so timed work finishes while you are away. Both defaults can be changed per action on the agent's Connectors tab, to Allow, Ask or Block.
What limits does Facebook set on Page posts?
Facebook allows 30 Reels per Page in 24 hours. A Reel is a vertical MP4 of 3 to 90 seconds at 540 by 960 pixels or more, and a story is an image of up to 10 MB or a vertical video of 3 to 60 seconds. A photo post holds up to 10 images. Insights cover up to 90 days per request, and a missing number means Facebook has no data yet, not zero.
Where are my Facebook tokens stored?
The sign-in tokens and the System User token are encrypted at rest, and neither is ever shown to the AI model. Your app's App Secret is needed only while signing in, and the System User token only to find your assigned Pages and get each Page's own access. Disconnect on the Connectors tab to delete them.
Is there a Facebook MCP server to host, or a fee?
No server is needed. Once connected, the Page actions are tools the agent already has, and connecting adds no cost to any agent plan. Meta's limits for Page publishing still apply to your Pages.
Access
Revoke Facebook Pages access
Remove the app's access in your Facebook Pages account's connected apps settings, then disconnect it here.
Related connectors
More social connectors for your Wiro agent
InstagramPublish photos, carousels, Reels and Stories to your Instagram professional accounts.
LinkedInPublish posts to a LinkedIn organization page.
MastodonRead your timeline and post statuses on your Mastodon instance.
PinterestCreate pins on your boards and read their performance.
RedditSubmit posts and comments to subreddits and read their replies.
ThreadsPublish posts to Threads and read their replies and insights.
Put Facebook Pages to work with Wiro
Deploy an agent and connect Facebook Pages from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.