Connect Facebook to Definable AI
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.
About Facebook
Facebook is a productivity tool. Connect it to Definable AI with one-click OAuth2 — no API keys or custom code required.
What you can automate with Facebook
Use Definable AI's agent platform to trigger workflows from Facebook, process results with 50+ AI models, and sync data across 900+ connected apps.
Tools & Actions (45 available)
- 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: Adds a reaction to a Facebook post or comment. Note: Due to API limitations, only LIKE reactions can be added programmatically.
- 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: Creates a comment on a Facebook post or replies to an existing comment.
- 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: 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: Creates a new post on a Facebook Page.
- Create Video Post: Creates a video post on a Facebook Page.
- 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: Deletes a Facebook Page post.
- Get Comment: Retrieves details of a specific Facebook comment.
- 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: Retrieves messages from a specific conversation.
- Get Current User: Validates the access token and retrieves the current user's profile via /me.
- Get Message Details: Retrieves details of a specific message sent or received by the Page.
- Get Page Conversations: Retrieves a list of conversations between users and the Page.
- Get Page Details: Fetches details about a specific Facebook Page.
- 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: Retrieves photos from a Facebook Page.
- 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: Retrieves a list of people and their tasks/roles on a Facebook Page.
- 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: Retrieves videos from a Facebook Page.
- Get Post: Retrieves details of a specific Facebook post.
- Get Post Insights: Retrieves analytics and insights for a specific Facebook post. Returns metrics like impressions, clicks, and engagement data.
- Get Post Reactions: Retrieves reactions (like, love, wow, etc.) for a Facebook post.
- Get Scheduled Posts: Retrieves scheduled and unpublished posts for a Facebook Page.
- Get User Pages: Retrieves a list of Pages the user manages, including tasks and access tokens.
- Like Post or Comment: Likes a Facebook post or comment.
- List Managed Pages: Retrieves a list of Facebook Pages that the user manages, including page details, access tokens, and tasks.
- 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: 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: Removes a user's tasks/access from a specific Facebook Page.
- 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: 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: Sends a media message (image, video, audio, or file) from the Page to a user.
- Send Message: Sends a text message from the Page to a user via Messenger.
- Toggle Typing Indicator: Shows or hides the typing indicator for a user in Messenger.
- Unlike Post or Comment: Removes a like from a Facebook post or comment.
- 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: Updates settings for a specific Facebook Page.
- Update Post: Updates an existing Facebook Page post.
- Upload Photo: Uploads a photo file directly to a Facebook Page. Supports local file upload up to 10MB.
- 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: Uploads a video file directly to a Facebook Page. Supports local file upload. For large videos (>100MB), uses resumable upload.
How to connect Facebook
- Sign in to Definable AI and go to Apps
- Search for Facebook and click Connect
- Authorize via OAuth2 — takes under 30 seconds
- Use Facebook actions in your AI agents and workflows