The Cyclr Facebook Marketing API Connector has the following Webhook Methods available:
- Webhooks > Generic Webhook
- Webhooks > Leadgen Webhook
You must manually add webhooks to your Facebook app to receive requests in a Cycle.
The following describes setting up a webhook to receive real-time notifications of changes to a Page’s Lead ads.
Any combination of object and fields can be used.
In these cases, the Webhooks > Generic Webhook Method should be used. As this webhook is generic, request field values should be mapped as request fields in the format:
[entry].[changes].value.<Key>
Add a webhook to a Cycle
From a Cycle:
- Add the Webhooks > Leadgen Webhook method to a Cycle.
- Select Step Setup.
- Make a note of the Cyclr Webhook URL shown on the Step.
Configure the webhook within Facebook
NOTE: The Cycle containing the webhook must be started before completing the below.
From the Facebook Apps page:
- Select the app you wish to configure webhooks for.
- Select Webhooks from the left side menu.
- Under the Select product heading, select the dropdown and select Page.
- Under the Configure a webhook heading:
- Enter the Cyclr Webhook URL in the Callback URL text box.
- Enter any text in the Verify token text box.
- Select Verify and save.
- Once the page reloads, under the Select product heading, select the dropdown and select Page.
- Under the Configure a webhook heading, select the toggle next to the leadgen webhook field.