Facebook API
Unlock the full potential of your Facebook page management with Flexito OmniAI. Effortlessly create, update, and manage posts, ads, and interactions directly from the platform. Streamline your social media strategy with advanced features like comment replies, lead form management
Listen to an audio overview
A short, AI-generated podcast-style summary of this article.
Unlock the full potential of your Facebook page management with Flexito OmniAI. Effortlessly create, update, and manage posts, ads, and interactions directly from the platform. Streamline your social media strategy with advanced features like comment replies, lead form management, and custom audience targeting.
Facebook Page API with Flexito OmniAI
This guide explains how to use Flexito OmniAI's Facebook Page Actions to efficiently manage your Facebook page content.
Connecting to Facebook
Link your Facebook Business Manager account through Integrations.
Connect your Facebook account in the Facebook channel and associate it with a bot.
Adding the Action Node to Your Flow
To add an Action Node to your flow, navigate to Advanced Actions.
Choose Facebook API from the options.
Features of Facebook Page API via Flexito OmniAI's Action Node
This guide provides a detailed overview of the Facebook Page API Actions available on the Flexito OmniAI Platform, helping you understand the purpose of each action.
List Page Posts: Get a list of all posts currently published on your Facebook page.
Get Page Post: Retrieve the details of a specific post on your Facebook page.
Create Page Post:
Publish new content directly to your Facebook page using Flexito OmniAI.
Update Page Post:
Modify an existing post on your Facebook page.
Delete Page Post:
Remove an existing post from your Facebook page.
List Page Post Comments:
Get a list of comments for a specific post on your Facebook page.
Get Comment:
Retrieve details of a specific comment on your Facebook page.
Reply to Comment:
Respond to a comment on a post on your Facebook page.
Update Comment:
Edit an existing comment on your Facebook page post.
Hide Comment:
Conceal a comment on a post on your Facebook page.
Like Comment:
Give a 'like' to a comment on a post on your Facebook page.
Delete Comment:
Remove a comment from a post on your Facebook page.
Page API Create Image Post Create an image post on your Facebook page. To upload and post an image, enter the Photo URL in the placeholder.
Facebook Page Ads
List Ads Posts
Get a list of all ad posts. Use the ad ID or name for specific searches.
Ads Post List Comments
Retrieve all comments on a specific ad post by providing the ad post ID.
Ads Post Comment Reply
Respond to a comment on your ad post or add a new comment.
To reply, provide the comment ID and your message.
To add a new comment, provide the post ID and your message.
List Lead Forms
Get a list of all lead forms associated with your page.
Get Lead Form Questions
View the questions in a lead form by providing the lead form ID.
List Lead Form Leads
Get a list of all leads from a specific lead form by providing the lead form ID.
Get Lead Gen
Retrieve the details of a specific lead by providing the lead generation ID.
Facebook Group API (Deprecated)
Deprecated Actions
List Groups
Get Group Info
List Group Posts
Get Group Post Info
Create Group Post - Text
Create Group Post - Photo
List Group Post Comments
Get Comment
Note: These actions are deprecated and are no longer supported.
List Ad Accounts
Get a list of all ad accounts.
Get Ad Account
Retrieve details of a specific ad account by providing the ad account ID.
Get Campaign
Get details of a specific campaign by providing the campaign ID.
List Custom Audiences
Retrieve a list of all custom audiences.
Get Custom Audience
Get details of a specific custom audience by providing the custom audience ID.
Create an Empty Custom Audience
Create a new custom audience.
Ad account ID
Name
Description
Subtype (Default: CUSTOM; Examples: CUSTOM, WEBSITE, APP, LOOKALIKE)
Is value-based (Default: false; Examples: true, false)
Pixel ID (associated with the audience)
Update Custom Audience
Change the name and description of an existing custom audience. Provide the custom audience ID, new name, and description.
Delete Custom Audience
Remove a custom audience by providing the custom audience ID.
Add Current Facebook User to Custom Audience
Add the current user in the flow to a custom audience by providing the custom audience ID.
Add User to Custom Audience By Email
To add a user to a custom audience using their email, provide the custom audience ID and the user’s email.
Add User to Custom Audience By Phone
Add a user to a custom audience using their phone number by providing the custom audience ID and the user’s phone number.
Remove Current Facebook User from Custom Audience
Remove the current user in the flow from a custom audience by providing the custom audience ID.
Remove User from Custom Audience By Email
Remove a user from a custom audience using their email by providing the custom audience ID and the user’s email.
Remove User from Custom Audience By Phone
Remove a user from a custom audience using their phone number by providing the custom audience ID and the user’s phone number.
Video Tutorial
Reply to Comment on Facebook
This feature lets you respond to comments on Facebook posts. You can also choose to save the comment reply as a bot message, which will appear in the chat history.
Parameters/Fields:
comment_id: Comment ID (required).
message: Message of the comment reply (required).
Save as Bot Message: If enabled, the comment will be added to the chat history but won't trigger previous training.
Step-by-Step Guide
Step 1: Configure the Reply to Comment Action
Open the flow editor and add an Action node.
Select Facebook API > Reply to Comment.
Connect the flow with your Comment Keyword Automation. (additional documentation: Comment Keywords )
Step 2: Set Up the Parameters
In the action settings, enter the Comment ID for the comment you want to reply to.
Type the Message that will be sent as a reply.
Enable Save as Bot Message if you want the reply to appear in the chat history.
Step 3: View the Reply in Chat History
After executing the action, the reply will be visible in the chat history.
If Save as Bot Message was enabled, the reply will be logged but won’t retrigger previous messages.
This ensures that bot-generated replies to Instagram comments are logged within the chat history for better visibility and tracking.

