Communication
Facebook Pages & Lead Ads Webhooks
Meta Graph API webhooks for Facebook Pages. Receive Lead Ads form submissions (leadgen), Page feed activity such as posts, comments and reactions, mentions, ratings and Page profile changes.
Connecting Facebook Pages & Lead Ads to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into Facebook Pages & Lead Ads. Then:
- 1In the Meta App Dashboard, open App settings → Basic, copy the App secret (click Show) and paste it into this Hookbase source
- 2Open your app's Webhooks settings, choose the Page object, enter your Hookbase ingest URL as the Callback URL and the Verify token Hookbase generated, then verify and save. Hookbase answers Meta's check itself
- 3Subscribe to the Page fields you need, e.g. leadgen and feed
- 4Install the app on each Page: POST /{page-id}/subscribed_apps?subscribed_fields=leadgen,feed with a Page access token. Without this no events arrive
- 5For Lead Ads, the token needs leads_retrieval, pages_manage_metadata, pages_show_list, pages_read_engagement and ads_management, and the app must be live to use the Lead Ads Testing Tool
Signature verification
Set the source's provider to whatsapp and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- HMAC-SHA256
- Header
- X-Hub-Signature-256
- Where to find the secret
- Meta App Dashboard → Your App → App settings → Basic → App secret (click Show). The Callback URL and Verify token go in the Webhooks product, on the Page object.
Facebook Pages & Lead Ads event types
10 of the events people route most often. Hookbase accepts every event Facebook Pages & Lead Ads sends, whether or not it is listed here.
leadgen
A Lead Ads form was submitted. Carries leadgen_id, form_id and ad ids only; fetch the answers with GET /{leadgen_id} (leads_retrieval permission)
feed
Nearly any change to the Page's feed: posts, comments, shares, reactions (value.item and value.verb say which)
mention
The Page was mentioned in a post or comment
ratings
A new rating or recommendation, or a comment or reaction on one
live_videos
A live video's status changed
videos
A video's encoding status changed
group_feed
A comment on the Page's post in a Facebook Group
name
The Page's name changed
picture
The Page's profile picture changed
messages
A Messenger message to the Page (see the Messenger entry for all messaging fields)
What a Facebook Pages & Lead Ads webhook looks like
A leadgen payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"object": "page",
"entry": [
{
"id": "PAGE_ID",
"time": 1440120384,
"changes": [
{
"field": "leadgen",
"value": {
"leadgen_id": "LEADGEN_ID",
"page_id": "PAGE_ID",
"form_id": "FORM_ID",
"adgroup_id": "ADGROUP_ID",
"ad_id": "AD_ID",
"created_time": 1440120384
}
}
]
}
]
}Start receiving Facebook Pages & Lead Ads webhooks
Create a source, paste the URL into Facebook Pages & Lead Ads, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free