Facebook & Instagram
Facebook Page posts and comments, Instagram publishing and comments, Messenger and Instagram Direct
Beta v0.2.0 Node.js 25 actions ToS risk low
About
A Graphrt plugin for the official Meta Graph API. It manages a Facebook Page (posts, comments), an Instagram professional account (publishing, comment moderation), and Messenger / Instagram Direct conversations. Every operation is a workflow node. Agent tools are limited by the agent policy.
What it can do
- Facebook Page: page info, list, create (text/link/scheduled/photo), edit and delete posts
- Facebook comments: list (with total count), reply, hide/unhide, delete, like/unlike
- Instagram: - Account info, media list and publishing quota. - Publish an image, reel, story or carousel. The plugin waits for processing. - Comments: list, list replies, reply, hide/unhide, delete.
- Messaging: list conversations (Messenger or Instagram), read messages, send text or attachments
- api_request: any other Graph endpoint, restricted to graph.facebook.com
- Retries rate limits (using Meta's regain-access estimate), and gives clear error kinds. Tokens never appear in errors.
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Get Facebook Page
meta-api.get_page - List Page posts
meta-api.list_page_posts - Create Page post
meta-api.create_page_post - Create Page photo post
meta-api.create_page_photo_post - Update Page post
meta-api.update_page_post - Delete Page post
meta-api.delete_page_post - List Facebook comments
meta-api.list_comments - Reply on Facebook
meta-api.reply_to_comment - Hide/unhide Facebook comment
meta-api.set_comment_hidden - Delete Facebook comment
meta-api.delete_comment
Show all 25 actions
- Like Facebook comment
meta-api.like_comment - Unlike Facebook comment
meta-api.unlike_comment - Get Instagram account
meta-api.get_instagram_account - List Instagram media
meta-api.list_instagram_media - Get Instagram publishing limit
meta-api.get_instagram_publishing_limit - Publish to Instagram
meta-api.publish_instagram_media - List Instagram comments
meta-api.list_instagram_comments - List Instagram comment replies
meta-api.list_instagram_comment_replies - Reply to Instagram comment
meta-api.reply_to_instagram_comment - Hide/unhide Instagram comment
meta-api.set_instagram_comment_hidden - Delete Instagram comment
meta-api.delete_instagram_comment - List conversations
meta-api.list_conversations - List conversation messages
meta-api.list_conversation_messages - Send message
meta-api.send_message - Meta Graph API request
meta-api.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
META_ACCESS_TOKENRequiredPage access token (from GET /me/accounts with a user token) -
META_PAGE_IDFor Page/messaging operationsDefault Page id -
META_IG_USER_IDFor Instagram operationsDefault Instagram account id (GET /{page-id}?fields=instagram_business_account) -
META_GRAPH_VERSIONOptionalGraph API version, default v26.0 -
META_TOOL_ALLOW_POSTOptional1 lets agent tools publish Page and Instagram posts and reply to comments (see Agent policy) -
META_TOOL_ALLOW_ENGAGEOptional1 lets agent tools hide, unhide, like and unlike comments -
META_TOOL_ALLOW_DMOptional1 lets agent tools send_message, to recipients in META_TOOL_RECIPIENT_ALLOWLIST only -
META_TOOL_RECIPIENT_ALLOWLISTWith META_TOOL_ALLOW_DMComma-separated PSIDs / IGSIDs agent tools may message, matched exactly. Unset refuses every agent message -
META_API_TOOL_TOKEN_SOURCE
How to use it
In Graphrt Desktop
- Open Plugins and search for Facebook & Instagram.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install meta-api workflow.yaml
- id: reply
type: meta-api.reply_to_comment
object_id: "{{#start.comment_id#}}"
message: "Terima kasih! Cek DM ya."
- id: dm
type: meta-api.send_message
recipient_id: "{{#start.psid#}}"
text: "Halo! Ada yang bisa kami bantu?"