> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Facebook

> Facebook is a social media and advertising platform used by individuals and businesses to connect, share content, and promote products or services. Only supports Facebook Pages, not Facebook Personal accounts.

![Facebook logo](https://mintcdn.com/composio-preview/r7CO9m4_UWMVFnU7/images/toolkits/facebook.svg?fit=max\&auto=format\&n=r7CO9m4_UWMVFnU7\&q=85\&s=ea89732e8ddaffde03f55360b79b6c65)

* **Category:** social media accounts
* **Auth:** OAUTH2
* **Composio-managed OAuth available?** Yes
* **Tools:** 64
* **Triggers:** 0
* **Slug:** `FACEBOOK`
* **Version:** 20261103\_00

## Frequently Asked Questions

> [accordion] How do I set up custom OAuth credentials for Meta (Facebook)?
>
> For a step-by-step guide on creating and configuring your own Meta (Facebook) OAuth credentials with Composio, see [How to create OAuth credentials for Meta (Facebook)](https://composio.dev/auth/facebook).

## Tools

> [accordion] Assign Page Task
>
> **Slug:** `FACEBOOK_ASSIGN_PAGE_TASK`
>
> Assigns tasks/roles to a business-scoped user or system user for a specific Facebook Page. The acting credential must be a Page access token requested by a person with the MANAGE task and the pages\_manage\_metadata permission. The target user must be a business-scoped user ID or system user ID; regular Facebook user IDs are not accepted.
>
> #### Input Parameters
>
> **user** `string` *required*
>
> The business-scoped user ID or system user ID to assign tasks to. Note: Regular Facebook user IDs are not accepted - only business-scoped IDs (from Business Manager) or system user IDs can be used with this endpoint.
>
> **tasks** `array` *required*
>
> List of tasks to assign. Valid values include: 'MANAGE', 'CREATE\_CONTENT', 'MODERATE', 'ADVERTISE', 'ANALYZE', 'MESSAGING'. Example: \['MANAGE', 'CREATE\_CONTENT']
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Comment
>
> **Slug:** `FACEBOOK_CREATE_COMMENT`
>
> Creates a comment on a Facebook post or replies to an existing comment.
>
> #### Input Parameters
>
> **message** `string` *required*
>
> The text content of the comment
>
> **object\_id** `string` *required*
>
> The ID of the post or comment to comment on. Must be a numeric ID (e.g., '3071372469667482') or compound format 'pageId\_postId' (e.g., '678465505624869\_3071372469667482'). Do not include prefixes like 'post\_', 'id\_', or 'p'.
>
> **attachment\_id** `string`
>
> ID of an unpublished photo to attach to the comment
>
> **attachment\_url** `string`
>
> URL of a photo to attach to the comment
>
> **attachment\_share\_url** `string`
>
> URL of a GIF to attach to the comment
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Multi-Photo Post
>
> **Slug:** `FACEBOOK_CREATE_MULTI_PHOTO_POST`
>
> Publish one Facebook Page feed post containing one or more photos from public URLs. The action first uploads every photo with published=false, then creates one /feed post with those photo IDs as attached\_media. If any upload fails, the feed post is not created; earlier uploads can remain unpublished on Facebook temporarily. This action publishes immediately and does not add photos to an existing album.
>
> #### Input Parameters
>
> **message** `string`
>
> Optional text to publish with the photo post.
>
> **page\_id** `string` *required*
>
> Numeric ID of the Facebook Page that will publish the post.
>
> **photo\_urls** `array` *required*
>
> One or more direct, publicly accessible HTTPS image URLs. Facebook must be able to fetch each URL without authentication.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Photo Post
>
> **Slug:** `FACEBOOK_CREATE_PHOTO_POST`
>
> Creates a photo post on a Facebook Page using an image URL or uploaded image, with an optional caption. Returns a photo ID and may also return a composite post ID for follow-up post operations.
>
> #### Input Parameters
>
> **url** `string`
>
> URL of a publicly accessible image to upload. Supports direct image links with or without file extensions (e.g., [https://example.com/image.jpg](https://example.com/image.jpg) or hash-based URLs from services like Imgur, Gyazo, Postimages). The image host must not block requests from Facebook. At least one of 'url', 'photo', or 'media' is required. The URL must return an image MIME type directly — redirects or HTML pages cause upload failures.
>
> **media** `object`
>
> Alias for 'photo'. for uploading a local image file (e.g..jpg.png.gif). At least one of 'media', 'photo', or 'url' is required.
>
> **photo** `object`
>
> for uploading a local image file (e.g..jpg.png.gif). At least one of 'photo', 'url', or 'media' is required.
>
> **message** `string`
>
> Caption text for the photo. Can also be provided as 'caption'.
>
> **page\_id** `string` *required*
>
> The numeric ID of the Facebook Page to post to. Can be provided as a string or number.
>
> **published** `boolean`
>
> Set to true to publish immediately, false to save as unpublished
>
> **backdated\_time** `integer`
>
> Unix timestamp to backdate the post
>
> **scheduled\_publish\_time** `integer`
>
> Unix timestamp for scheduled posts (required if published=false) Must be a future UTC epoch timestamp. Providing this with published=true triggers a 400 validation error.
>
> **backdated\_time\_granularity** `string`
>
> Granularity of backdated time: year, month, day, hour, or min
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Post
>
> **Slug:** `FACEBOOK_CREATE_POST`
>
> Creates a text or link post on a Facebook Page, with a required message field and optional link, scheduling, and targeting. Requires pages\_manage\_posts permission and a manage-level Page role; returns a post ID.
>
> #### Input Parameters
>
> **link** `string`
>
> URL to include in the post
>
> **message** `string` *required*
>
> The text content of the post At least one of `message` or `link` must be non-empty; omitting both causes a validation error.
>
> **page\_id** `string` *required*
>
> The numeric ID of the Facebook Page to post to. This is a numeric string (e.g., '123456789012345'). To obtain a valid page\_id, use the 'Get User Pages' or 'List Managed Pages' action which returns page IDs for pages you have access to manage.
>
> **published** `boolean`
>
> Set to true to publish immediately, false to save as draft or schedule
>
> **targeting** `object`
>
> Audience targeting specifications
>
> **scheduled\_publish\_time** `integer`
>
> Unix timestamp for when the post should be published. Must be at least 10 minutes in the future. When provided, published must be false (will be auto-set to false if true). Must be Unix UTC epoch (not local time); timezone mismatches cause validation failures.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Create Video Post
>
> **Slug:** `FACEBOOK_CREATE_VIDEO_POST`
>
> Creates a video post on a Facebook Page. Local files use Facebook's resumable upload protocol, including large videos. Requires a Page access token with `pages_manage_posts` scope and manage-level permissions on the target page.
>
> #### Input Parameters
>
> **title** `string`
>
> Title of the video
>
> **video** `object`
>
> Local video file to upload with Facebook's resumable protocol. At least one of 'video' or 'file\_url' must be provided.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page Must be a Facebook Page ID (not a personal profile ID); the authenticated token must have manage-level access.
>
> **file\_url** `string`
>
> URL of the video file to upload. At least one of 'file\_url' or 'video' must be provided. Must be a direct download URL (e.g., direct MP4 link), not a watch/share URL. Use MP4 with H.264/AAC encoding; unsupported formats or very large files may fail.
>
> **published** `boolean`
>
> Whether to publish immediately
>
> **targeting** `object`
>
> Audience targeting specifications
>
> **description** `string`
>
> Description of the video
>
> **scheduled\_publish\_time** `integer`
>
> Unix timestamp to schedule the video post Requires `published=false`; must be a UTC Unix epoch at least \~10 minutes in the future. Combining with `published=true` or omitting when `published=false` causes 400 errors.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Comment
>
> **Slug:** `FACEBOOK_DELETE_COMMENT`
>
> Deletes a Facebook comment. Requires a Page Access Token with appropriate permissions for comments on Page-owned content. The page\_id parameter helps ensure the correct page token is used for authentication.
>
> #### Input Parameters
>
> **page\_id** `string`
>
> Optional: The ID of the Facebook Page that owns the post containing this comment. If not provided, the action will use the first available managed page. Providing the correct page\_id ensures proper authentication.
>
> **comment\_id** `string` *required*
>
> The ID of the comment to delete. Can be in format 'parentId\_commentId' (e.g., '122157027176937815\_1371138271476143') or just the comment ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Delete Post
>
> **Slug:** `FACEBOOK_DELETE_POST`
>
> Permanently deletes a Facebook Page post. Deletion is irreversible — deleted posts cannot be recovered. For bulk deletions, keep throughput to \~1 delete/second to avoid Graph API rate limits.
>
> #### Input Parameters
>
> **post\_id** `string` *required*
>
> The ID of the post to delete The token must have Page-level delete permissions for this post. Posts created by other users or requiring elevated Page roles may not be deletable.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Ad Insights
>
> **Slug:** `FACEBOOK_GET_AD_INSIGHTS`
>
> Read Marketing API performance insights for an advertising object.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum number of insight rows requested for this page.
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated Ads Insights fields to return in each row.
>
> **date\_preset** `string ("data_maximum" | "last_14d" | "last_28d" | "last_30d" | "last_3d" | "last_7d" | "last_90d" | "last_month" | "last_quarter" | "last_week_mon_sun" | "last_week_sun_sat" | "last_year" | "maximum" | "this_month" | "this_quarter" | "this_week_mon_today" | "this_week_sun_today" | "this_year" | "today" | "yesterday")`
>
> Optional preset date window for the Ads Insights report.
>
> **advertising\_object\_id** `string` *required*
>
> Ad account, campaign, ad set, or ad ID to report on.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Comment
>
> **Slug:** `FACEBOOK_GET_COMMENT`
>
> Retrieves details of a specific Facebook comment.
>
> #### Input Parameters
>
> **fields** `string`
>
> Comma-separated list of fields to return
>
> **comment\_id** `string` *required*
>
> The ID of the comment to retrieve
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Comments
>
> **Slug:** `FACEBOOK_GET_COMMENTS`
>
> Retrieves comments from a Facebook post or comment (for replies). This endpoint requires appropriate permissions: - For page-owned posts: A Page Access Token with 'pages\_read\_engagement' permission - The API automatically swaps user tokens for page tokens when available API Version: Uses v26.0, released July 2026.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Number of comments to return (max 100)
>
> **order** `string`
>
> Order of comments: 'chronological' (oldest first) or 'reverse\_chronological' (newest first, default).
>
> **fields** `string`
>
> Comma-separated list of fields to return for each comment. Available fields: id, message, created\_time, from, attachment, comment\_count, like\_count, is\_hidden, user\_likes, can\_comment, can\_remove, can\_hide, permalink\_url, parent, comments (for nested replies). Note: 'from' field requires a Page Token to access user information (since Graph API v2.11).
>
> **filter** `string`
>
> Filter comments by type: 'stream' returns all comments including replies in flat list (default), 'toplevel' returns only top-level comments without replies.
>
> **object\_id** `string` *required*
>
> The ID of the post or comment to get comments from. Must be in full format 'pageId\_postId' for posts (e.g., '123456789\_987654321'). For comments, use the comment ID directly.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Conversation Messages
>
> **Slug:** `FACEBOOK_GET_CONVERSATION_MESSAGES`
>
> Retrieves messages from a specific conversation.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Number of messages to return (max 25) To retrieve full histories, paginate using `paging.cursors.after` or the `next` URL from the response.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each message. Available fields include: id, created\_time, from, to, message, attachments, sticker, shares, tags.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page that owns the conversation. Required to obtain the correct page access token. Get this from the List Managed Pages action.
>
> **conversation\_id** `string` *required*
>
> The ID of the conversation in the format 't\_' followed by a numeric ID (e.g., 't\_3638640842939952'). Obtain valid conversation IDs from the Get Page Conversations action. If a numeric-only ID is provided, the 't\_' prefix will be added automatically.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Current User
>
> **Slug:** `FACEBOOK_GET_CURRENT_USER`
>
> Validates the access token and retrieves the authenticated user's own profile via /me. Cannot fetch arbitrary users by name or ID.
>
> #### Input Parameters
>
> **fields** `string`
>
> Comma-separated list of fields to return for the current user Fields are silently omitted or return null if the access token lacks the required Facebook permissions — including defaults like `email`. Handle missing fields defensively.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Graph Object
>
> **Slug:** `FACEBOOK_GET_GRAPH_OBJECT`
>
> Read caller-selected fields from an identified Facebook Graph node using permissions already granted to the connection.
>
> #### Input Parameters
>
> **fields** `string`
>
> Optional comma-separated Graph fields to return for this object type. If omitted, Facebook returns the node's provider-default fields.
>
> **object\_id** `string` *required*
>
> Facebook Graph object ID, or me for the connected user.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Graph Objects
>
> **Slug:** `FACEBOOK_GET_GRAPH_OBJECTS`
>
> Read caller-selected fields from multiple Facebook Graph nodes in one batch request and return successes and failures keyed by requested object ID.
>
> #### Input Parameters
>
> **fields** `string`
>
> Optional comma-separated Graph fields to return for every requested object type. If omitted, Facebook returns each node's provider-default fields.
>
> **object\_ids** `array` *required*
>
> Distinct Facebook Graph object IDs to read; use me for the connected user.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Message Details
>
> **Slug:** `FACEBOOK_GET_MESSAGE_DETAILS`
>
> Retrieves details of a specific message sent or received by the Page.
>
> #### Input Parameters
>
> **fields** `string`
>
> Comma-separated list of fields to return
>
> **message\_id** `string` *required*
>
> The ID of the message to retrieve details for
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Conversations
>
> **Slug:** `FACEBOOK_GET_PAGE_CONVERSATIONS`
>
> Retrieves a list of conversations between users and the Page.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Number of conversations to return (max 25) Use `paging.cursors.after` or `paging.next` from the response to paginate beyond the first page.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each conversation Avoid requesting heavy nested fields (e.g., embedded messages) to prevent large payloads.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page. Numeric IDs are accepted and will be converted to strings.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Details
>
> **Slug:** `FACEBOOK_GET_PAGE_DETAILS`
>
> Fetches details about a specific Facebook Page.
>
> #### Input Parameters
>
> **fields** `string`
>
> Comma-separated list of fields to return for the Page. Common valid fields include: id, name, about, category, description, fan\_count, followers\_count, website, link, username, is\_published, access\_token, emails, phone, location, hours, cover, picture, engagement, verification\_status, and many more. IMPORTANT: The following fields are NOT valid for direct Page queries and will be automatically filtered out: 'tasks' (only available via /me/accounts endpoint - use FACEBOOK\_LIST\_MANAGED\_PAGES to get page tasks), 'created\_time' (not supported on all page node types such as ProfileDelegatePage). For a complete list of valid Page fields, refer to the Facebook Graph API Page reference.
>
> **page\_id** `string` *required*
>
> The unique numeric ID of the Facebook Page to get details for. This must be a valid Facebook Page ID that the authenticated user has access to view. Facebook Page IDs are numeric strings typically 15-16 digits long (e.g., '678594635343968'). To find valid page IDs you have access to, first use the FACEBOOK\_LIST\_MANAGED\_PAGES or FACEBOOK\_GET\_USER\_PAGES actions to retrieve a list of pages you manage, which will include their IDs. You can also find a page's ID in its Facebook URL (e.g., [https://www.facebook.com/123456789012345](https://www.facebook.com/123456789012345)) or in the Page's 'About' section. Do not use arbitrary numbers, timestamps, bank account numbers, or other non-Facebook identifiers.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Insights
>
> **Slug:** `FACEBOOK_GET_PAGE_INSIGHTS`
>
> Retrieves analytics and insights for a Facebook Page, including follower, media view and engagement metrics. Some requested legacy metrics are replaced with different supported metrics, while unsupported metrics may be removed or rejected; check the returned metric names and execution message.
>
> #### Input Parameters
>
> **since** `string`
>
> Start of date range as Unix timestamp (e.g., '1704067200'), ISO 8601 datetime (e.g., '2024-10-01T00:00:00+0000', '2024-10-01'), or strtotime-compatible string (e.g., 'yesterday', '-7 days'). Maximum range is 90 days when combined with 'until'.
>
> **until** `string`
>
> End of date range as Unix timestamp (e.g., '1704672000'), ISO 8601 datetime (e.g., '2025-01-29T05:12:31+0000', '2025-01-29'), or strtotime-compatible string (e.g., 'now', '-1 day'). Maximum range is 90 days when combined with 'since'.
>
> **period** `string`
>
> Period for the metrics: day, week, days\_28, month, lifetime Using `lifetime` with bounded `since`/`until` ranges produces misleading or empty results. Standardize all date inputs to UTC.
>
> **metrics** `string`
>
> Comma-separated list of metrics to retrieve. VALID METRICS: page\_follows (total followers), page\_daily\_follows\_unique (new follows), page\_daily\_unfollows\_unique (unfollows), page\_media\_view (content views), page\_post\_engagements (engagement count), page\_video\_views (video views), page\_total\_actions (CTA clicks), page\_actions\_post\_reactions\_total (reactions breakdown), page\_total\_media\_view\_unique (unique media viewers). DEPRECATED (will be auto-replaced): page\_impressions\_unique -> page\_total\_media\_view\_unique, page\_impressions -> page\_media\_view, page\_fans -> page\_follows, page\_engaged\_users -> page\_post\_engagements, page\_fan\_adds -> page\_daily\_follows\_unique. Individual reaction metrics (page\_actions\_post\_reactions\_like\_total, etc.) are deprecated; use page\_actions\_post\_reactions\_total instead. Not all metric/period combinations are valid; incompatible combinations return empty data — reduce metrics list or adjust period if this occurs.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page Must be a numeric Page ID; page names, URLs, and personal profile IDs are invalid.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Photos
>
> **Slug:** `FACEBOOK_GET_PAGE_PHOTOS`
>
> Retrieves photos from a Facebook Page. CDN-based URLs (including `source`) are time-limited and expire; download and persist images promptly if long-term access is needed.
>
> #### Input Parameters
>
> **type** `string`
>
> Filter by photo type: uploaded, tagged
>
> **limit** `integer`
>
> Number of photos to return (max 100) Use paging cursors from the response to iterate through all available photos in large libraries; limit=100 does not guarantee all photos are returned in one call.
>
> **fields** `string`
>
> Comma-separated list of valid Photo fields to return. Valid fields include: id, created\_time, updated\_time, name, images, height, width, picture, link, icon, from, album, backdated\_time, place, page\_story\_id, target, event, can\_delete, can\_tag, webp\_images. NOTE: 'reactions' and 'comments' are NOT valid fields - they are edges that must be accessed via separate API calls (e.g., /\{photo-id}/reactions, /\{photo-id}/comments).
>
> **page\_id** `string` *required*
>
> The numeric ID of the Facebook Page (e.g., '678594635343968'). You can obtain page IDs using the FACEBOOK\_LIST\_MANAGED\_PAGES action. Do NOT pass datetime strings, timestamps, or date values - only valid Facebook page IDs.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Posts
>
> **Slug:** `FACEBOOK_GET_PAGE_POSTS`
>
> Retrieves posts from a Facebook Page's feed using Graph API v26.0, with optional time filters. The response may include pagination information, but this tool does not accept a cursor or next URL for subsequent pages.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Number of posts to return (max 100)
>
> **since** `string`
>
> Filter posts updated after this time. Accepts: Unix timestamp (e.g., '1705320000'), strtotime values (e.g., 'yesterday', '7 days ago', 'last week'), or datetime strings (e.g., '2024-01-15', '2024-01-15T12:00:00'). Datetime strings are automatically converted to Unix timestamps.
>
> **until** `string`
>
> Filter posts updated before this time. Accepts: Unix timestamp (e.g., '1705320000'), strtotime values (e.g., 'yesterday', '7 days ago', 'last week'), or datetime strings (e.g., '2024-01-15', '2024-01-15T12:00:00'). Datetime strings are automatically converted to Unix timestamps.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each post. Supported fields include: id, message, created\_time, updated\_time, permalink\_url, attachments, story, from, status\_type, full\_picture, shares, reactions, comments, is\_hidden, is\_published. For summary counts, use '.summary(true)' syntax (e.g., 'reactions.summary(true)', 'comments.summary(true)', 'likes.summary(true)'). Note: 'type', 'link', 'source', 'picture', 'name', 'caption', 'description', and 'icon' are deprecated since Graph API v3.3 and will be automatically removed if requested. Response nests engagement data: extract reactions.summary.total\_count, comments.summary.total\_count, and shares.count; treat missing keys as zero.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page. Can be provided as a string or number. Must be a Facebook Page ID, not a personal profile or user ID — use FACEBOOK\_GET\_USER\_PAGES to obtain a valid Page ID.
>
> **removed\_deprecated\_fields** `array`
>
> Internal field to track deprecated fields that were automatically removed.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Roles
>
> **Slug:** `FACEBOOK_GET_PAGE_ROLES`
>
> Retrieves a list of people and their tasks/roles on a Facebook Page. The connected account must have management access to the target Page; otherwise the response may be empty or incomplete. Returned role types include MANAGE and CREATE\_CONTENT — verify these before calling tools like FACEBOOK\_UPDATE\_PAGE\_SETTINGS. Recently changed roles may take time to propagate; retry if role data appears stale after an update.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor string for forward pagination. Use the 'after' cursor from a previous response's paging.cursors.after field to retrieve the next page of results.
>
> **limit** `integer`
>
> Maximum number of roles to return per request.
>
> **before** `string`
>
> Cursor string for backward pagination. Use the 'before' cursor from a previous response's paging.cursors.before field to retrieve the previous page of results.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Tagged Posts
>
> **Slug:** `FACEBOOK_GET_PAGE_TAGGED_POSTS`
>
> Retrieves posts where a Facebook Page is tagged or mentioned. Use when monitoring brand mentions or tracking posts that tag your Page but don't appear on your Page's own feed.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Number of posts to return (max 100)
>
> **since** `string`
>
> Filter posts updated after this time. Accepts: Unix timestamp (e.g., '1705320000'), strtotime values (e.g., 'yesterday', '7 days ago', 'last week'), or datetime strings (e.g., '2024-01-15', '2024-01-15T12:00:00'). Datetime strings are automatically converted to Unix timestamps.
>
> **until** `string`
>
> Filter posts updated before this time. Accepts: Unix timestamp (e.g., '1705320000'), strtotime values (e.g., 'yesterday', '7 days ago', 'last week'), or datetime strings (e.g., '2024-01-15', '2024-01-15T12:00:00'). Datetime strings are automatically converted to Unix timestamps.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each post
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page. Can be provided as a string or number.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Page Videos
>
> **Slug:** `FACEBOOK_GET_PAGE_VIDEOS`
>
> Retrieves videos from a Facebook Page.
>
> #### Input Parameters
>
> **type** `string`
>
> Filter by video type: uploaded, tagged
>
> **limit** `integer`
>
> Number of videos to return (max 100) Controls only the first batch; iterate through paging cursors (`paging.cursors.after`) until no `next` page is returned to retrieve all videos.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each video The `source` field returns time-limited URLs; download or process promptly rather than storing for later use.
>
> **page\_id** `string` *required*
>
> The numeric ID of the Facebook Page. This is a numeric string (e.g., '123456789012345'). To obtain a valid page\_id, use the 'Get User Pages' or 'List Managed Pages' action which returns page IDs for pages you have access to manage.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Post
>
> **Slug:** `FACEBOOK_GET_POST`
>
> Retrieves details of a specific Facebook post using a full numeric Page ID and post ID separated by an underscore.
>
> #### Input Parameters
>
> **fields** `string`
>
> Comma-separated list of fields to return. Common fields: id, message, created\_time, updated\_time, permalink\_url, from, attachments, shares, story, picture, full\_picture, place, privacy, status\_type. For engagement metrics with counts, use edge.summary(true) syntax. CORRECT: likes.summary(true), comments.summary(true), reactions.summary(true). WRONG: likes.summary(total\_count) - using 'total\_count' as parameter causes API syntax errors. The 'true' parameter enables the summary, and total\_count is returned in the response automatically. Note: Legacy post fields (name, link, description, type) are deprecated; use 'attachments' edge instead.
>
> **post\_id** `string` *required*
>
> The ID of the post to retrieve. Must be in full format: 'pageId\_postId' where both pageId and postId are numeric (e.g., '123456789\_987654321'). Page-scoped IDs (alphanumeric strings like '1ANtnBaCHX' or '17GandZR1N') are not supported. Use FACEBOOK\_GET\_PAGE\_POSTS to obtain valid full-format post IDs.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Post Insights
>
> **Slug:** `FACEBOOK_GET_POST_INSIGHTS`
>
> Retrieves media-view and unique media-viewer insights for a Facebook post. Some legacy metric names are mapped to these metrics, while certain removed metrics are rejected.
>
> #### Input Parameters
>
> **period** `string`
>
> Period for the metrics (only applicable for some metrics): lifetime Supports since/until parameters in UTC; convert from user timezone to avoid misleading aggregates when comparing posts across time windows.
>
> **metrics** `string`
>
> Comma-separated list of metrics to retrieve. Valid metrics: post\_media\_view (media views) and post\_total\_media\_view\_unique (unique media viewers). Note: Older metrics like post\_impressions, post\_impressions\_unique, post\_clicks, post\_engagements, post\_engaged\_users, post\_reactions\_by\_type\_total were deprecated by Facebook as of November 15, 2025 and are no longer supported. Request only needed metrics to reduce payload size and avoid rate limit errors (error codes 4/613) when iterating over many posts.
>
> **post\_id** `string` *required*
>
> The ID of the post to get insights for
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Post Reactions
>
> **Slug:** `FACEBOOK_GET_POST_REACTIONS`
>
> Retrieves reactions (like, love, wow, etc.) for a Facebook post. Very recent posts may return empty or partial reactions data; treat missing fields as incomplete coverage, not an error.
>
> #### Input Parameters
>
> **type** `string`
>
> Filter by reaction type: LIKE, LOVE, WOW, HAHA, SAD, ANGRY, THANKFUL
>
> **limit** `integer`
>
> Number of reactions to return (max 100)
>
> **post\_id** `string` *required*
>
> The ID of the post to get reactions for
>
> **summary** `boolean`
>
> Include summary with total count per reaction type
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Scheduled Posts
>
> **Slug:** `FACEBOOK_GET_SCHEDULED_POSTS`
>
> Retrieves one page of scheduled and unpublished posts for a Facebook Page, with pagination information when returned. The request supports a result limit and selected fields.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Number of posts to return (max 100)
>
> **fields** `string`
>
> Comma-separated list of fields to return for each post
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get User Pages (Deprecated)
>
> **Slug:** `FACEBOOK_GET_USER_PAGES`
>
> Retrieves Facebook Pages accessible to a user, defaulting to the current user. This deprecated action requires the pages\_show\_list scope and supports cursor pagination.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor string for pagination. Use the 'after' cursor from a previous response's paging.cursors.after field to retrieve the next page of results.
>
> **limit** `integer`
>
> Maximum number of pages to return per request.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each page. Supported fields include: id, name, access\_token, tasks, category, category\_list, picture, link, fan\_count, followers\_count, is\_published, global\_brand\_page\_name, instagram\_business\_account, verification\_status, is\_webhooks\_subscribed. Always include `id` and `name` to avoid extra identity-resolution calls. Check `tasks` values before write actions — Page inclusion does not guarantee publish/manage permissions.
>
> **user\_id** `string`
>
> The ID of the user whose pages to retrieve. Defaults to 'me' for current user.
>
> **composio\_execution\_message** `string`
>
> Execution message from preprocessing.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Add Reaction
>
> **Slug:** `FACEBOOK_LIKE_POST_OR_COMMENT`
>
> Adds a LIKE reaction to a Facebook post or comment. Note: Due to API limitations, only LIKE reactions can be added programmatically. This action is user-visible and irreversible — confirm with the user before calling.
>
> #### Input Parameters
>
> **type** `string`
>
> Reaction type: Currently only LIKE is supported via API. Other reactions (LOVE, WOW, HAHA, SAD, ANGRY, THANKFUL) cannot be added programmatically
>
> **object\_id** `string` *required*
>
> The ID of the post or comment to react to. Facebook IDs are numeric strings (typically 15-20 digits).  Must belong to a Page post or comment, not a personal profile timeline.IMPORTANT: Always pass IDs as strings to preserve precision. Integer values will be converted to strings, but float values (including scientific notation like 5.3e+32) are rejected because they lose precision.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Ad Account Campaigns
>
> **Slug:** `FACEBOOK_LIST_AD_ACCOUNT_CAMPAIGNS`
>
> List campaigns belonging to a Facebook ad account.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum number of campaigns to request. Meta may return fewer.
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated Campaign fields to return.
>
> **time\_range** `object`
>
> Date range used to aggregate insights metrics.
>
> **date\_preset** `string ("today" | "yesterday" | "this_month" | "last_month" | "this_quarter" | "maximum" | "data_maximum" | "last_3d" | "last_7d" | "last_14d" | "last_28d" | "last_30d" | "last_90d" | "last_week_mon_sun" | "last_week_sun_sat" | "last_quarter" | "last_year" | "this_week_mon_today" | "this_week_sun_today" | "this_year")`
>
> Predefined date range used to aggregate insights metrics.
>
> **is\_completed** `boolean`
>
> Whether to return completed campaigns.
>
> **ad\_account\_id** `string` *required*
>
> Numeric Facebook ad account ID, with or without the 'act\_' prefix.
>
> **effective\_status** `array`
>
> Effective campaign statuses to include.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Ad Accounts
>
> **Slug:** `FACEBOOK_LIST_AD_ACCOUNTS`
>
> List ad accounts available to the authenticated Facebook user.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum number of ad accounts to return per request (1-100).
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each ad account.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Ads
>
> **Slug:** `FACEBOOK_LIST_ADS`
>
> List ads associated with a Facebook advertising parent.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum number of ads to request in one page.
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated list of Ad fields to return.
>
> **parent\_id** `string` *required*
>
> Advertising parent ID; ad account IDs use the act\_ prefix.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Assigned Ad Accounts
>
> **Slug:** `FACEBOOK_LIST_ASSIGNED_AD_ACCOUNTS`
>
> Lists ad accounts assigned to a business-scoped user. Use a Business User ID, not a Facebook user ID or Business ID. Results use cursor pagination; pass `paging.cursors.after` to retrieve the next page.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor for forward pagination. Use paging.cursors.after from the previous response.
>
> **limit** `integer`
>
> Maximum number of ad accounts to return in this page.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each assigned ad account.
>
> **business\_user\_id** `string` *required*
>
> The ID of the business-scoped user whose assigned ad accounts to retrieve. Obtain this from the business's business\_users edge.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Business Ad Accounts
>
> **Slug:** `FACEBOOK_LIST_BUSINESS_AD_ACCOUNTS`
>
> Lists client ad accounts a Facebook Business can access. Calls GET /\{business\_id}/client\_ad\_accounts, which returns ad accounts owned by other businesses that have been shared with this business. To list ad accounts owned by the business itself, use FACEBOOK\_LIST\_OWNED\_AD\_ACCOUNTS.
>
> #### Input Parameters
>
> **after** `string`
>
> Forward-pagination cursor from paging.cursors.after in a previous response.
>
> **limit** `integer`
>
> Maximum number of ad accounts to return (1-100).
>
> **fields** `string`
>
> Comma-separated AdAccount fields to return.
>
> **business\_id** `string` *required*
>
> Facebook Business ID whose client ad accounts should be listed.
>
> **search\_query** `string`
>
> Search text used to filter the client ad accounts.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Businesses
>
> **Slug:** `FACEBOOK_LIST_BUSINESSES`
>
> List Business Manager businesses accessible to the connected Facebook user, including selected business details and permitted roles.
>
> #### Input Parameters
>
> **after** `string`
>
> Opaque continuation cursor returned by a previous call.
>
> **limit** `integer`
>
> Maximum businesses to return in one page (1-100).
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated Business fields to return.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Client Pages
>
> **Slug:** `FACEBOOK_LIST_CLIENT_PAGES`
>
> List client-owned Pages accessible to a Business Manager business.
>
> #### Input Parameters
>
> **after** `string`
>
> Opaque continuation cursor returned by a previous call.
>
> **limit** `integer`
>
> Maximum client Pages to request in one page.
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated Page fields to return.
>
> **summary** `string`
>
> Set to total\_count to have Facebook return summary.total\_count.
>
> **business\_id** `string` *required*
>
> Business Manager business ID whose client Pages to list.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Managed Pages
>
> **Slug:** `FACEBOOK_LIST_MANAGED_PAGES`
>
> Retrieves Facebook Pages managed by a user, with page details, access tokens and tasks when returned. Results are paginated using cursors; an empty result alone does not establish why no Pages were returned.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor string for forward pagination. Use the 'after' cursor from a previous response's paging.cursors.after field to retrieve the next page of results.
>
> **limit** `integer`
>
> Maximum number of pages to retrieve per request.
>
> **before** `string`
>
> Cursor string for backward pagination. Use the 'before' cursor from a previous response's paging.cursors.before field to retrieve the previous page of results.
>
> **fields** `string`
>
> Comma-separated list of fields to return for each managed page.
>
> **user\_id** `string`
>
> The ID of the user whose managed pages to retrieve. Defaults to 'me' for current user.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Object Attachments
>
> **Slug:** `FACEBOOK_LIST_OBJECT_ATTACHMENTS`
>
> List one page of attachments belonging to a Facebook Graph object.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum attachments to return (1-100).
>
> **fields** `string`
>
> Comma-separated attachment fields to return.
>
> **object\_id** `string` *required*
>
> Facebook Graph object ID, typically a composite Page post ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Owned Ad Accounts
>
> **Slug:** `FACEBOOK_LIST_OWNED_AD_ACCOUNTS`
>
> List ad accounts owned by a Business Manager business, with optional Meta account filtering and cursor pagination.
>
> #### Input Parameters
>
> **after** `string`
>
> Opaque continuation cursor returned by a previous call.
>
> **limit** `integer`
>
> Maximum ad accounts to request in one page.
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated ad account fields to return.
>
> **business\_id** `string` *required*
>
> Business Manager business ID whose owned ad accounts to list.
>
> **search\_query** `string`
>
> Meta account search query used to filter the results.
>
> **include\_shared\_ad\_accounts** `boolean`
>
> Whether to include shared ad accounts where Meta supports it.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Owned Pages
>
> **Slug:** `FACEBOOK_LIST_OWNED_PAGES`
>
> List Facebook Pages owned by a Business Manager business.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum number of Pages to return per request (1-100).
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated Page fields to return.
>
> **summary** `string`
>
> Set to 'total\_count' to include the total number of owned Pages in summary.total\_count.
>
> **business\_id** `string` *required*
>
> The Business Manager business ID whose owned Pages to list.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Page Stories
>
> **Slug:** `FACEBOOK_LIST_PAGE_STORIES`
>
> Lists photo and video stories for a Facebook Page managed by the connected account. The Page must have an available Page access token; results can be filtered by status and creation time and paginated with cursors.
>
> #### Input Parameters
>
> **after** `string`
>
> Forward cursor from paging.cursors.after.
>
> **limit** `integer`
>
> Number of stories to return.
>
> **since** `string`
>
> Start of the story creation range as an ISO 8601 datetime, Unix timestamp, or strtotime-compatible value.
>
> **until** `string`
>
> End of the story creation range as an ISO 8601 datetime, Unix timestamp, or strtotime-compatible value.
>
> **before** `string`
>
> Backward cursor from paging.cursors.before.
>
> **fields** `array`
>
> Story fields to return.
>
> **status** `array`
>
> Story publication statuses to include.
>
> **page\_id** `string` *required*
>
> Numeric ID of a Facebook Page managed by the connected account.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Permissions
>
> **Slug:** `FACEBOOK_LIST_PERMISSIONS`
>
> List granted, declined, or expired Facebook permissions for the connected user and app.
>
> #### Input Parameters
>
> **status** `string ("granted" | "declined" | "expired")`
>
> Permission status to filter.
>
> **permission** `string`
>
> Permission name to filter, such as email or business\_management.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Published Page Posts
>
> **Slug:** `FACEBOOK_LIST_PUBLISHED_PAGE_POSTS`
>
> List posts published by a Facebook Page, excluding unpublished posts.
>
> #### Input Parameters
>
> **with** `string`
>
> Filter published posts to those associated with a location.
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum number of published posts to return (1-100).
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated fields to return for each published Page post.
>
> **page\_id** `string` *required*
>
> ASCII numeric ID of a Facebook Page managed by the connected account. Use FACEBOOK\_LIST\_MANAGED\_PAGES to obtain a valid page\_id.
>
> **show\_expired** `boolean`
>
> Whether to include expired published Page posts.
>
> **include\_hidden** `boolean`
>
> Whether to include hidden published Page posts.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Video Tags
>
> **Slug:** `FACEBOOK_LIST_VIDEO_TAGS`
>
> Return one page of people or Pages tagged on a Facebook video.
>
> #### Input Parameters
>
> **after** `string`
>
> Opaque continuation cursor returned by a previous call.
>
> **limit** `integer`
>
> Maximum tags to request in one page (1-100).
>
> **fields** `string`
>
> Comma-separated TaggableSubject fields to return: id and name.
>
> **video\_id** `string` *required*
>
> Facebook video ID whose tags should be listed.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] List Video Thumbnails
>
> **Slug:** `FACEBOOK_LIST_VIDEO_THUMBNAILS`
>
> List available thumbnail images for a Facebook video.
>
> #### Input Parameters
>
> **after** `string`
>
> Opaque continuation cursor returned by a previous call.
>
> **limit** `integer`
>
> Maximum thumbnails to request in one page.
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **fields** `string`
>
> Comma-separated thumbnail fields to return.
>
> **video\_id** `string` *required*
>
> Facebook video ID.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Mark Message Seen
>
> **Slug:** `FACEBOOK_MARK_MESSAGE_SEEN`
>
> Marks a user's message as seen by the Page, visibly updating the read status in the user's conversation. Note: This action requires an active messaging session with the user. Facebook's messaging policy requires that users have messaged the Page within the last 24 hours for sender actions to work.
>
> #### Input Parameters
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> **recipient\_id** `string` *required*
>
> The ID of the user whose message to mark as seen
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Publish Scheduled Post
>
> **Slug:** `FACEBOOK_PUBLISH_SCHEDULED_POST`
>
> Publishes a previously scheduled or unpublished Facebook post immediately. This action takes a scheduled or unpublished post and publishes it immediately by setting is\_published to true. The post must have been previously created with published=false or with a scheduled\_publish\_time. Requirements: - The post must exist and be in an unpublished/scheduled state - The user must have admin access to the page that owns the post - The app must have pages\_manage\_posts permission
>
> #### Input Parameters
>
> **page\_id** `string`
>
> Optional: The ID of the Facebook Page that owns the post. If not provided, it will be extracted from the post\_id (the part before the underscore).
>
> **post\_id** `string` *required*
>
> The ID of the scheduled/unpublished post to publish. Format is typically 'pageId\_postId' (e.g., '123456789\_987654321'). Use 'Get Scheduled Posts' action to find scheduled post IDs.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Refresh URL Scrape
>
> **Slug:** `FACEBOOK_REFRESH_URL_SCRAPE`
>
> Ask Facebook to rescrape a public HTTP or HTTPS URL, optionally returning requested URL metadata fields.
>
> #### Input Parameters
>
> **url** `string` *required*
>
> Public HTTP or HTTPS URL whose Facebook scrape metadata should be refreshed.
>
> **fields** `string`
>
> Optional comma-separated URL metadata fields to return after the refresh.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Remove Page Task
>
> **Slug:** `FACEBOOK_REMOVE_PAGE_TASK`
>
> Removes a user's tasks/access from a specific Facebook Page. Caller must have admin-level rights on the Page. Operates on one page\_id at a time; repeat for each page if removing from multiple pages. Partial access may remain if only some tasks are revoked.
>
> #### Input Parameters
>
> **user** `string` *required*
>
> The ID or username of the user to remove Verify this matches the intended collaborator before calling; a mismatch revokes access for the wrong account.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Reschedule Post
>
> **Slug:** `FACEBOOK_RESCHEDULE_POST`
>
> Changes the scheduled publish time of an unpublished Facebook post. This action updates the scheduled\_publish\_time of a previously scheduled post. The post must have been created with published=false and a scheduled\_publish\_time.
>
> #### Input Parameters
>
> **post\_id** `string` *required*
>
> The ID of the scheduled post to reschedule. Format is typically 'pageId\_postId' (e.g., '123456789\_987654321').
>
> **scheduled\_publish\_time** `integer` *required*
>
> New Unix timestamp for when to publish the post. Must be at least 10 minutes in the future and no more than 6 months ahead.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Search Ad Targeting Options
>
> **Slug:** `FACEBOOK_SEARCH_AD_TARGETING_OPTIONS`
>
> Searches query-driven Meta ad targeting option families, including geographic areas, interests, locales, schools, majors, employers, and job titles. Results vary by search type, so inspect each returned object's fields. Pass `paging.cursors.after` to retrieve the next page.
>
> #### Input Parameters
>
> **type** `string ("adcountry" | "adeducationmajor" | "adeducationschool" | "adgeolocation" | "adinterest" | "adlocale" | "adworkemployer" | "adworkposition")` *required*
>
> Meta targeting search type. Only values exposed by the current Meta Business SDK are accepted.
>
> **after** `string`
>
> Cursor for forward pagination. Use paging.cursors.after from the previous response.
>
> **limit** `integer`
>
> Maximum number of targeting options to return in this page.
>
> **query** `string` *required*
>
> UTF-8 search text sent as Meta's `q` parameter. Use an empty string to list all countries, regions, or locales when supported.
>
> **region\_id** `string`
>
> Region ID to search within when type=adgeolocation. Pass IDs as strings to preserve their exact value.
>
> **country\_code** `string`
>
> ISO country code to search within when type=adgeolocation.
>
> **location\_types** `array`
>
> Geographic result kinds. Use only with type=adgeolocation; Meta prefers this over legacy geographic type values.
>
> **match\_country\_code** `boolean`
>
> Whether type=adgeolocation should match the query against country codes as well as names.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Search Geographic Targeting Locations
>
> **Slug:** `FACEBOOK_SEARCH_GEOGRAPHIC_TARGETING_LOCATIONS`
>
> Find current geographic keys accepted by Meta ad targeting.
>
> #### Input Parameters
>
> **after** `string`
>
> Cursor from paging.cursors.after for the next page.
>
> **limit** `integer`
>
> Maximum number of locations to return per request (1-1000).
>
> **query** `string` *required*
>
> Text prefix used to autocomplete locations.
>
> **before** `string`
>
> Cursor from paging.cursors.before for the previous page.
>
> **region\_id** `string`
>
> Meta region ID used to constrain results.
>
> **country\_code** `string`
>
> ISO country code used to constrain results.
>
> **location\_types** `array`
>
> Geographic location categories to include in the search.
>
> **match\_country\_code** `boolean`
>
> Match the query against country codes instead of country names.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Search Pages
>
> **Slug:** `FACEBOOK_SEARCH_PAGES`
>
> Searches for Facebook Pages based on a query string. Returns pages matching the search criteria with requested fields. Requires pages\_read\_engagement. The Meta app must also have Page Public Metadata Access for public Page information or Page Public Content Access for competitive-analysis use cases. These are app-level features, not OAuth scopes. Missing feature access is returned as Meta error 10 and fails the execution. Results include only Pages, not profiles, groups, or other entities.
>
> #### Input Parameters
>
> **limit** `integer`
>
> Maximum number of results to return (max 100) A specific target page may not appear in a single response; refine the query string if the desired page is missing.
>
> **query** `string` *required*
>
> Search query for finding pages (e.g., business name, topic, etc.)
>
> **fields** `string`
>
> Comma-separated list of fields to retrieve for each page Returned field data (e.g., fan\_count, location) can be sparse or outdated; avoid relying on a single field for selection logic.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Send Media Message
>
> **Slug:** `FACEBOOK_SEND_MEDIA_MESSAGE`
>
> Sends a media message (image, video, audio, or file) from the Page to a user.
>
> #### Input Parameters
>
> **tag** `string`
>
> Message tag required when messaging\_type is MESSAGE\_TAG. HUMAN\_AGENT can be used for eligible human-agent responses.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page sending the message
>
> **media\_url** `string` *required*
>
> URL of the media to send
>
> **media\_type** `string` *required*
>
> Type of media: image, video, audio, or file
>
> **is\_reusable** `boolean`
>
> Whether the attachment is reusable
>
> **recipient\_id** `string` *required*
>
> The ID of the message recipient (user ID or PSID)
>
> **messaging\_type** `string`
>
> The messaging type - RESPONSE, UPDATE, or MESSAGE\_TAG
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Send Message
>
> **Slug:** `FACEBOOK_SEND_MESSAGE`
>
> Sends a text message from a Facebook Page (not personal profiles) to a user via Messenger. Requires explicit user confirmation before calling, as this action delivers a message to a real end user.
>
> #### Input Parameters
>
> **tag** `string`
>
> Required when messaging\_type is MESSAGE\_TAG. HUMAN\_AGENT can be used within 7 days of the last user message for eligible human-agent responses.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page sending the message Must be a numeric page ID, not a username or alias.
>
> **message\_text** `string` *required*
>
> The text content of the message to send
>
> **recipient\_id** `string` *required*
>
> The ID of the message recipient (user ID or PSID) Must be a numeric PSID, not a username or display name.
>
> **messaging\_type** `string`
>
> The messaging type - RESPONSE, UPDATE, or MESSAGE\_TAG. Use RESPONSE within 24 hours of user's last message. Use MESSAGE\_TAG with a tag parameter to send outside the 24-hour window.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Toggle Typing Indicator
>
> **Slug:** `FACEBOOK_TOGGLE_TYPING_INDICATOR`
>
> Shows or hides the typing indicator for a user in Messenger.
>
> #### Input Parameters
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> **typing\_on** `boolean` *required*
>
> True to show typing indicator, False to hide it
>
> **recipient\_id** `string` *required*
>
> The Page-Scoped ID (PSID) of the user to show/hide typing indicator for
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Unlike Post or Comment
>
> **Slug:** `FACEBOOK_UNLIKE_POST_OR_COMMENT`
>
> Removes a like from a Facebook post or comment.
>
> #### Input Parameters
>
> **object\_id** `string` *required*
>
> The ID of the post or comment to unlike. Facebook IDs are numeric strings (typically 15-20 digits). IMPORTANT: Always pass IDs as strings to preserve precision. Integer values will be converted to strings, but float values (including scientific notation like 5.3e+32) are rejected because they lose precision.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Comment
>
> **Slug:** `FACEBOOK_UPDATE_COMMENT`
>
> Updates an existing Facebook comment. IMPORTANT: This action requires a Page Access Token. The comment must belong to a post on a Page that you manage. Use the page\_id parameter to ensure the correct page token is used, especially if you manage multiple pages.
>
> #### Input Parameters
>
> **message** `string` *required*
>
> The new text content of the comment
>
> **page\_id** `string`
>
> The ID of the Facebook Page that owns the comment. Required to ensure the correct page access token is used. If not provided, the action will attempt to use the first available page's token, which may fail if you manage multiple pages.
>
> **is\_hidden** `boolean`
>
> Whether to hide or unhide the comment
>
> **comment\_id** `string` *required*
>
> The ID of the comment to update. Format is typically 'objectId\_commentId' (e.g., '122157027176937815\_1371138271476143').
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Page Settings
>
> **Slug:** `FACEBOOK_UPDATE_PAGE_SETTINGS`
>
> Updates settings for a specific Facebook Page. Requires the authenticated user to have MANAGE and CREATE\_CONTENT tasks for the target page; verify roles via FACEBOOK\_GET\_PAGE\_ROLES. Not all fields (about, description, general\_info, etc.) are available for every Page category.
>
> #### Input Parameters
>
> **about** `string`
>
> Updated about section for the page
>
> **phone** `string`
>
> Updated phone number
>
> **emails** `array`
>
> Updated email addresses
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page to update
>
> **website** `string`
>
> Updated website URL
>
> **description** `string`
>
> Updated description for the page
>
> **general\_info** `string`
>
> Updated general information
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Update Post
>
> **Slug:** `FACEBOOK_UPDATE_POST`
>
> Updates an existing Facebook Page post.
>
> #### Input Parameters
>
> **message** `string`
>
> Updated text content of the post
>
> **post\_id** `string` *required*
>
> The ID of the post to update
>
> **og\_phrase** `string`
>
> Open Graph phrase
>
> **og\_icon\_id** `string`
>
> Open Graph icon ID
>
> **og\_object\_id** `string`
>
> Open Graph object ID
>
> **og\_action\_type\_id** `string`
>
> Open Graph action type ID
>
> **og\_suggestion\_mechanism** `string`
>
> Open Graph suggestion mechanism
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upload Photo
>
> **Slug:** `FACEBOOK_UPLOAD_PHOTO`
>
> DEPRECATED: Use FACEBOOK\_CREATE\_PHOTO\_POST instead. Uploads a photo file directly to a Facebook Page. Supports local file upload up to 10MB.
>
> #### Input Parameters
>
> **url** `string`
>
> Public URL of the photo (must be accessible by Facebook servers). Alternative to 'photo'. Use this for images hosted on external servers. Must be a direct HTTPS endpoint returning an image MIME type; redirects, HTML pages, and non-HTTPS URLs fail validation.
>
> **tags** `array`
>
> List of user tags with format \[\{'tag\_uid': 'USER\_ID', 'x': 50, 'y': 50}]
>
> **photo** `object`
>
> Photo file to upload (max 10MB). Alternative to 'url'. If a URL string is mistakenly passed here, it will be auto-converted to use the 'url' parameter.
>
> **caption** `string`
>
> Caption for the photo
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page. Can be provided as a string or number. Must be a Page ID; personal profile/user timeline IDs are not valid.
>
> **published** `boolean`
>
> Whether to publish the photo immediately
>
> **targeting** `object`
>
> Audience targeting specifications
>
> **scheduled\_publish\_time** `integer`
>
> Unix timestamp to schedule the post Requires `published=false`; value must be a future UTC epoch in seconds. Using `published=true` with this field causes validation errors.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upload Photos Batch
>
> **Slug:** `FACEBOOK_UPLOAD_PHOTOS_BATCH`
>
> Uploads independent photos to a Facebook Page or Album using the Graph batch API, accepting up to 50 local files and up to 50 photo URLs. Published Page photos may each create their own feed story rather than one multi-photo post.
>
> #### Input Parameters
>
> **photos** `array`
>
> List of photo files to upload (max 50 photos)
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> **album\_id** `string`
>
> ID of album to add photos to. If not provided, photos will be uploaded to timeline
>
> **published** `boolean`
>
> Whether to publish the photos immediately To schedule, set to false and include `scheduled_publish_time` as a Unix UTC epoch timestamp; mismatched combinations trigger 400 errors.
>
> **photo\_urls** `array`
>
> List of photo URLs to upload (alternative to 'photos') Must be direct, publicly accessible HTTPS URLs — no redirects, private URLs, or HTTP.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Upload Video (Deprecated)
>
> **Slug:** `FACEBOOK_UPLOAD_VIDEO`
>
> DEPRECATED: Use CreateVideoPost instead. Uploads a video file directly to a Facebook Page. Supports local file upload. For large videos (>100MB), uses resumable upload. After upload completes, the video enters a processing/pending state; do not reference or schedule it until processing finishes.
>
> #### Input Parameters
>
> **title** `string`
>
> Title of the video
>
> **video** `object`
>
> Video file to upload (max 10GB, recommended under 1GB). Either 'video' or 'file\_url' must be provided. Use MP4 with H.264 video and AAC audio to avoid upload failures.
>
> **page\_id** `string` *required*
>
> The ID of the Facebook Page
>
> **file\_url** `string`
>
> URL of a publicly accessible video file to upload. Either 'file\_url' or 'video' must be provided. This is an alternative to uploading a local file.
>
> **published** `boolean`
>
> Whether to publish immediately
>
> **targeting** `object`
>
> Audience targeting specifications
>
> **description** `string`
>
> Description of the video
>
> **content\_tags** `array`
>
> List of content tags
>
> **custom\_labels** `array`
>
> Custom labels for the video
>
> **scheduled\_publish\_time** `integer`
>
> Unix timestamp to schedule the video post Requires `published=false`; combining with `published=true` triggers a 400 validation error.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
