Delivery behaviour
Read from the vendor's own documentation, last checked 2026-08-06. Where the vendor states no number, this table carries none.
| Response budget | 5s Messenger and Instagram messaging. Meta's general webhook guide gives no figure |
|---|---|
| Retry | Retried with decreasing frequency over 36 hours, then dropped. WhatsApp Cloud API retries for up to 7 days |
| Gives up | Messenger and Instagram messaging: unsubscribed from the Page or account after 1 hour of failed delivery, until you subscribe again |
| Source | https://developers.facebook.com/docs/graph-api/webhooks/getting-started |
Signature
Verified against a working verifier proven by a test suite, not read from documentation. Last verified 2026-08-20.
| Algorithm | HMAC-SHA256 |
|---|---|
| Signed payload | raw body |
| Encoding | hex |
| Header | x-hub-signature-256 = sha256=hex |
| Tolerance | none enforced |
Verify it
The raw request body, byte for byte, before any JSON parsing. Every scheme on this page breaks the moment a framework re-serializes the payload.
const crypto = require("node:crypto");
// Same scheme as GitHub: "sha256=" + hex HMAC of the raw body, keyed by the
// app secret.
const expected =
"sha256=" +
crypto.createHmac("sha256", appSecret).update(rawBody).digest("hex");
const received = Buffer.from(req.headers["x-hub-signature-256"] ?? "");
const wanted = Buffer.from(expected);
// timingSafeEqual throws on a length mismatch, so check that first.
const valid =
received.length === wanted.length && crypto.timingSafeEqual(received, wanted);Before any of this runs, Meta must accept the callback URL: it sends a GET carrying hub.mode=subscribe and expects hub.challenge echoed back verbatim. No echo, no subscription.
What bites
Meta's general webhook guide gives the retry window (36 hours, decreasing frequency, then the notification is dropped) and no per-request response budget. Messenger and Instagram messaging are stricter: answer within 5 seconds, and after 1 hour of failed delivery your app is unsubscribed from that Page or Instagram account until you subscribe it again.
Read more
AnyHook sits in front of endpoints that receive from Meta: it answers in about a second, retries on its own schedule when your server is down, and keeps every event replayable. Change one URL, keep your code.