Facebook webhook
This article gives you knowledge of how webhooks send information from Facebook to Meiro Events.
Facebook is an online social media and social networking service company. Connect data about your audience from the Facebook platform with Meiro Integrations and create more data-driven customer profiles that allow you to reach out to the right people.
Requirements
You need to follow these key requirements to properly set up the webhook:
-
The endpoint must be able to process two types of HTTPS requests: Verification Requests and Event Notifications. Since both requests use HTTPs, the endpoint must have a valid TLS or SSL certificate correctly configured and installed. Self-signed certificates are not supported.
-
There are many types of objects in the Facebook Social Graph, such as User objects and Page objects, so whenever you configure a Webhook you must first choose an object type. Since different objects have different fields, you must then subscribe to specific fields for that object type.
Learn more about: how to set Facebook webhook
Feature
In Facebook webhook, Event Notifications are aggregated and sent in a batch with a maximum of 1000 updates. However, batching cannot be guaranteed so be sure to adjust the servers to handle each Webhook individually.
Examples of events in Facebook include:
-
Watch Posts - triggers when a new post is added;
-
Watch Photo - triggers when a new photo is added;
-
Watch Videos - triggers when a new video is added;
-
Messages - triggered when a custom integration page (bot) is messaged in Work Chat.
Examples of actions to perform within events:
-
Add to the custom audience
-
Remorse from the custom audience
Types of Facebook webhooks:
-
Webhook for Ad Accounts
-
Webhook for Certificate Transparency
-
Webhook for Instagram
-
Webhook for Leads
-
Webhook for Messenger
-
Webhook for Pages
-
Webhook for Payments
-
Webhook for WhatsApp Business Accounts
Example data
Endpoint: Event Notifications
This method is used for notifying about new photo in the user’s object you are subscribed to. Webkoon would send a POST request that would look like:
Use cases
Here are practical use cases on how to generate Facebook webhooks with the Meiro Events:
-
Meiro CDP can keep up-to-date subscribers’ profile information whenever any of the app users make changes to their email address;
-
You may receive real-time updates when users click on a lead ad;
-
After the person finishes entering the payment details in the purchase flow, a Facebook webhook may be triggered to notify the user of a successful payment and the details of the order.