Integration · Marketing
AI agents for Facebook Pages
Post text, links, photos and videos to one Facebook Page, schedule posts, read the Page's posts, comments and insights, and reply to comments, with a Page access token.
- Actions
- 11
- Read
- 5
- Write
- 6
Actions
What your agents can do in Facebook Pages
11 actions. Each one is a tool your agents can call and a step your workflows can run.
Read 5
Look things up. Nothing changes.
Get the Page
Reads the connected Facebook Page: its id, name, username, link (the Page's address on facebook.com), category, about, website, fan_count.
List the Page's posts
Lists posts the Page published, newest first, at data[].
Get a post
Reads one Page post by its ID ({page_id}_{post_id}, as publish_post or list_posts return it).
List comments on a post
Lists the comments on a Page post at data[]: each with id (for reply_to_comment or hide_comment), message, from (name, id), created_time, like_count, comment_count (replies), parent.
Get Page insights
Reads Page metrics for a period at data[]: each with name, period, title, description and values[] (value, end_time).
Write 6
Create, change or send.
Publish a post
Posts to the Page's feed: message (the text, emoji allowed) and/or link (a URL Facebook shows as a link preview); at least one of the two.
Publish a photo
Posts a photo to the Page from a public image address (url, a JPEG, PNG, GIF or similar that Facebook can download), with an optional caption (the post text).
Publish a video from a link
Posts a video to the Page: Facebook downloads it from file_url (a public address of an MP4 or similar file), with an optional title and description (the post text).
Delete a postDeletes data
Permanently deletes a Page post (published or scheduled) by its ID ({page_id}_{post_id}).
Reply to a comment
Replies as the Page to a comment (or comments on a post: pass the post's ID).
Hide or show a comment
Hides a comment on the Page's post (hidden: true), so only the commenter and their friends still see it, or shows it again (hidden: false).
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything. Actions that delete data ask first by default.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Paste an API key from your Facebook Pages account.
What you enter
- Page access token
Settings
- Page ID
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your Facebook Pages data
Ask a question in plain words. The agent can get the Page, list the Page's posts or get a post in Facebook Pages, then answers with what it found.
- 02
Let an agent update Facebook Pages
Have the agent publish a post or publish a photo in Facebook Pages as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Share what it finds in Slack
Give one agent Facebook Pages and Slack: it can get the Page in Facebook Pages and post a summary to a Slack channel in the same run.
FAQ
Facebook Pages and MyDeepAgents
Can MyDeepAgents connect to Facebook Pages?
Yes. The Facebook Pages connector has 11 actions: 5 read and 6 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect Facebook Pages?
Paste an API key from your Facebook Pages account. You'll need: Page access token. The connection also asks for: Page ID. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in Facebook Pages without asking?
Only if you let it. Each of the 6 actions that change data can be set to wait for a person's approval before it runs, and the one that deletes data asks first by default.
Can I use Facebook Pages in workflows as well as agents?
Yes. Every Facebook Pages action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put Facebook Pages to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.