# 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.

- **Category:** social media accounts
- **Auth:** OAUTH2
- **Tools:** 45
- **Triggers:** 0
- **Slug:** `FACEBOOK`
- **Version:** 20260211_00

## Frequently Asked Questions

### 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 Devcaster, see [How to create OAuth credentials for Meta (Facebook)](https://devcaster.dev/auth/facebook).

## Tools

### Add Photos to Album

**Slug:** `FACEBOOK_ADD_PHOTOS_TO_ALBUM`

Adds photos to an existing Facebook album. IMPORTANT: This action requires the 'pages_manage_posts' permission. The legacy 'publish_actions' permission has been deprecated by Facebook. If you encounter permission errors, consider using the FACEBOOK_UPLOAD_PHOTO action instead, which uploads photos directly to the page's timeline (photos are automatically placed in the 'Photos' or 'Timeline Photos' album). Note: System albums (Profile Pictures, Cover Photos) cannot be modified directly. Only user-created albums support adding photos via this endpoint. Currently adds one photo at a time. For true batch upload, use Facebook's batch API endpoint directly.

### Add Reaction

**Slug:** `FACEBOOK_ADD_REACTION`

Adds a reaction to a Facebook post or comment. Note: Due to API limitations, only LIKE reactions can be added programmatically.

### Assign Page Task

**Slug:** `FACEBOOK_ASSIGN_PAGE_TASK`

Assigns tasks/roles to a business-scoped user or system user for a specific Facebook Page. Important: This action requires a business-scoped user ID or system user ID from Facebook Business Manager. Regular Facebook user IDs cannot be used. The page must also be managed through Facebook Business Manager for this action to work. Required permissions: business_management, pages_manage_metadata

### Create Comment

**Slug:** `FACEBOOK_CREATE_COMMENT`

Creates a comment on a Facebook post or replies to an existing comment.

### Create Photo Album

**Slug:** `FACEBOOK_CREATE_PHOTO_ALBUM`

Creates a new photo album on a Facebook Page. Note: This endpoint requires the 'pages_manage_posts' permission or equivalent permissions to be granted to your Facebook application.

### Create Photo Post

**Slug:** `FACEBOOK_CREATE_PHOTO_POST`

Creates a photo post on a Facebook Page. Requires an image to be provided via either 'url' (publicly accessible image URL) or 'photo' (local image file upload). This action is specifically for posting images with optional captions, not text-only posts.

### Create Post

**Slug:** `FACEBOOK_CREATE_POST`

Creates a new post on a Facebook Page.

### Create Video Post

**Slug:** `FACEBOOK_CREATE_VIDEO_POST`

Creates a video post on a Facebook Page.

### 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.

### Delete Post

**Slug:** `FACEBOOK_DELETE_POST`

Deletes a Facebook Page post.

### Get Comment

**Slug:** `FACEBOOK_GET_COMMENT`

Retrieves details of a specific Facebook comment.

### 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 v23.0 which was released May 2025.

### Get Conversation Messages

**Slug:** `FACEBOOK_GET_CONVERSATION_MESSAGES`

Retrieves messages from a specific conversation.

### Get Current User

**Slug:** `FACEBOOK_GET_CURRENT_USER`

Validates the access token and retrieves the current user's profile via /me.

### Get Message Details

**Slug:** `FACEBOOK_GET_MESSAGE_DETAILS`

Retrieves details of a specific message sent or received by the Page.

### Get Page Conversations

**Slug:** `FACEBOOK_GET_PAGE_CONVERSATIONS`

Retrieves a list of conversations between users and the Page.

### Get Page Details

**Slug:** `FACEBOOK_GET_PAGE_DETAILS`

Fetches details about a specific Facebook Page.

### Get Page Insights

**Slug:** `FACEBOOK_GET_PAGE_INSIGHTS`

Retrieves analytics and insights for a Facebook Page. Returns metrics like impressions, page views, fan counts, and engagement data.

### Get Page Photos

**Slug:** `FACEBOOK_GET_PAGE_PHOTOS`

Retrieves photos from a Facebook Page.

### Get Page Posts

**Slug:** `FACEBOOK_GET_PAGE_POSTS`

Retrieves posts from a Facebook Page. Endpoint choice: Uses /{page_id}/feed instead of /posts or /published_posts because: - /feed returns all content on page timeline (page's posts + visitor posts + tagged posts) - /posts returns only posts created by the page itself - /published_posts returns only published posts by the page (excludes scheduled/unpublished) The /feed endpoint provides the most comprehensive view of page activity. API Version: Uses v23.0 which was released May 2025. Version v20.0 and earlier will be deprecated by Meta. See: https://developers.facebook.com/docs/graph-api/changelog

### Get Page Roles

**Slug:** `FACEBOOK_GET_PAGE_ROLES`

Retrieves a list of people and their tasks/roles on a Facebook Page.

### 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.

### Get Page Videos

**Slug:** `FACEBOOK_GET_PAGE_VIDEOS`

Retrieves videos from a Facebook Page.

### Get Post

**Slug:** `FACEBOOK_GET_POST`

Retrieves details of a specific Facebook post.

### Get Post Insights

**Slug:** `FACEBOOK_GET_POST_INSIGHTS`

Retrieves analytics and insights for a specific Facebook post. Returns metrics like impressions, clicks, and engagement data.

### Get Post Reactions

**Slug:** `FACEBOOK_GET_POST_REACTIONS`

Retrieves reactions (like, love, wow, etc.) for a Facebook post.

### Get Scheduled Posts

**Slug:** `FACEBOOK_GET_SCHEDULED_POSTS`

Retrieves scheduled and unpublished posts for a Facebook Page.

### Get User Pages

**Slug:** `FACEBOOK_GET_USER_PAGES`

Retrieves a list of Pages the user manages, including tasks and access tokens.

### Like Post or Comment

**Slug:** `FACEBOOK_LIKE_POST_OR_COMMENT`

Likes a Facebook post or comment.

### List Managed Pages

**Slug:** `FACEBOOK_LIST_MANAGED_PAGES`

Retrieves a list of Facebook Pages that the user manages, including page details, access tokens, and tasks.

### Mark Message Seen

**Slug:** `FACEBOOK_MARK_MESSAGE_SEEN`

Marks a user's message as seen by the Page. 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.

### 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

### Remove Page Task

**Slug:** `FACEBOOK_REMOVE_PAGE_TASK`

Removes a user's tasks/access from a specific Facebook Page.

### 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.

### Search Pages

**Slug:** `FACEBOOK_SEARCH_PAGES`

Searches for Facebook Pages based on a query string. Returns pages matching the search criteria with requested fields. DEPRECATION WARNING: The /pages/search endpoint was deprecated by Facebook in 2019 and is now ONLY available to Workplace by Meta apps. Standard Facebook apps will receive Error #10 (permission error) regardless of which permissions or features have been granted. For Workplace apps only - requires one of: - 'pages_read_engagement' permission - 'Page Public Content Access' feature - 'Page Public Metadata Access' feature Standard Facebook apps should use alternative methods to discover pages, such as: - Direct page ID lookup via /{page-id} endpoint - User's managed pages via /me/accounts endpoint Reference: https://developers.facebook.com/docs/apps/review/feature#reference-PAGES_ACCESS

### Send Media Message

**Slug:** `FACEBOOK_SEND_MEDIA_MESSAGE`

Sends a media message (image, video, audio, or file) from the Page to a user.

### Send Message

**Slug:** `FACEBOOK_SEND_MESSAGE`

Sends a text message from the Page to a user via Messenger.

### Toggle Typing Indicator

**Slug:** `FACEBOOK_TOGGLE_TYPING_INDICATOR`

Shows or hides the typing indicator for a user in Messenger.

### Unlike Post or Comment

**Slug:** `FACEBOOK_UNLIKE_POST_OR_COMMENT`

Removes a like from a Facebook post or comment.

### 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.

### Update Page Settings

**Slug:** `FACEBOOK_UPDATE_PAGE_SETTINGS`

Updates settings for a specific Facebook Page.

### Update Post

**Slug:** `FACEBOOK_UPDATE_POST`

Updates an existing Facebook Page post.

### Upload Photo

**Slug:** `FACEBOOK_UPLOAD_PHOTO`

Uploads a photo file directly to a Facebook Page. Supports local file upload up to 10MB.

### Upload Photos Batch

**Slug:** `FACEBOOK_UPLOAD_PHOTOS_BATCH`

Uploads multiple photo files in batch to a Facebook Page or Album. Uses Facebook's batch API for efficient multi-photo upload. Maximum 50 photos per batch.

### Upload Video

**Slug:** `FACEBOOK_UPLOAD_VIDEO`

Uploads a video file directly to a Facebook Page. Supports local file upload. For large videos (>100MB), uses resumable upload.
