Instagram Webhooks in 2026: Setup, Fields and Fixes
Instagram webhooks setup for 2026: which login setup you need, field permissions, signature checks, retries, and why a webhook verifies but never fires.
Instagram webhooks are Meta callbacks for comments, mentions and DMs on professional accounts. Build an HTTPS endpoint that returns hub.challenge and checks the X-Hub-Signature-256 header, subscribe your app to fields in the App Dashboard, then call /subscribed_apps for every connected account. That last call is the first thing to check when a webhook stays silent.
Instagram webhooks are HTTPS callbacks Meta sends to your server when something happens on an Instagram professional account connected to your app: a new comment, a mention, a direct message, a story insight. To get them, build an endpoint that answers Meta’s verification request and checks every payload signature. Then subscribe your app to the fields you need and turn notifications on for each connected account with a POST to its /subscribed_apps edge.
That last step is easy to miss, and it is a common reason a webhook “verifies fine but never fires”. This guide covers the full setup for 2026: the three login setups Meta now documents and which fields each one gets. It also covers the delivery rules (retries for 36 hours, batches of up to 1,000 updates) and a symptom-by-symptom checklist for when nothing arrives.
PostGate handles OAuth, publishing and delivery evidence for every network through one API. Start free or read the docs.
What do Instagram webhooks actually send?
Webhooks are the read side of the Instagram API. Publishing is a request you make; comments and messages are things that happen to you, and Meta pushes them to your callback URL instead of making you poll. If you are mapping which networks let you post at all, start with the overview of platforms with a posting API; this post is about what comes back after the post is live.
Per Meta’s Instagram Webhooks overview, notifications depend on the fields your app subscribes to. The groups that matter for most products:
| Field group | Fields | What arrives |
|---|---|---|
| Comments | comments, live_comments |
Comment ID, the commenter’s Instagram-scoped ID and username, the text and the media ID |
| Mentions | mentions |
An @mention of the account in a caption or comment (bundled into comments with Instagram Login) |
| Messaging | messages, message_reactions, messaging_postbacks, messaging_referral, messaging_seen, messaging_handover, standby |
DMs, reactions, button taps, ad referrals, read receipts and handover events |
| Insights | story_insights |
Metrics for a story, only for its first 24 hours |
There is no webhook for “a new post was published” on an account. You get that state from your own publish call, which is why a posting integration and a webhook integration are usually two separate pieces of code.
Which Instagram API setup are you on?
Meta’s docs now split webhook configuration across three setups, and the token, host and account ID are not interchangeable between them. The setup guide lists the differences:
| Instagram Login | Facebook Login | Unified Login | |
|---|---|---|---|
| API host | graph.instagram.com |
graph.facebook.com |
graph.facebook.com |
Token for /subscribed_apps |
Instagram User access token | Facebook Page access token | Business Integration System User token |
| Account ID in the path | Instagram professional account ID | Linked Facebook Page ID | Instagram professional account ID |
| Basic permission | instagram_business_basic |
instagram_basic |
instagram_basic |
story_insights |
Not available | Available | Available |
| Business verification | Required for production | Required for production | Required for production |
With Instagram Login, the token comes from the flow described in our Instagram access token guide. With Facebook Login, the account must be linked to a Facebook Page, and you subscribe the Page, not the Instagram account.
Each field also needs its own permission. On Instagram Login, comments and live_comments need instagram_business_manage_comments, and every messaging field needs instagram_business_manage_messages. On Facebook Login you add pages_manage_metadata, pages_read_engagement and pages_show_list on top. The webhook fields and permissions matrix has the full grid. Ask only for what you subscribe to, because every extra permission is another item in App Review.
How do you set up Instagram webhooks step by step?
Meta describes the setup as four steps. Here they are with the parts that break in practice.
1. Build the callback endpoint
Your endpoint must handle two request types over HTTPS with a valid certificate. Self-signed certificates are not accepted.
The verification request is a GET that Meta sends whenever you configure the Webhooks product. It carries hub.mode=subscribe, a hub.challenge number and the hub.verify_token you typed in the App Dashboard. Check the token, then return the challenge as the response body.
The event notification is a POST with a JSON body and an X-Hub-Signature-256: sha256=<signature> header. The signature is an HMAC SHA256 of the raw payload using your app secret. Meta says validation is optional, but skipping it means anyone who finds your URL can inject fake comments into your system.
A minimal Node.js handler:
import express from 'express';
import crypto from 'node:crypto';
const app = express();
const { APP_SECRET, VERIFY_TOKEN } = process.env;
// Verification request
app.get('/webhooks/instagram', (req, res) => {
if (req.query['hub.mode'] === 'subscribe' && req.query['hub.verify_token'] === VERIFY_TOKEN) {
return res.type('text/plain').send(req.query['hub.challenge']);
}
res.sendStatus(403);
});
// Event notifications: keep the raw body, the signature is computed over the exact bytes
app.post('/webhooks/instagram', express.raw({ type: 'application/json' }), (req, res) => {
const expected = 'sha256=' + crypto.createHmac('sha256', APP_SECRET).update(req.body).digest('hex');
const received = req.get('x-hub-signature-256') || '';
const valid = received.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected));
if (!valid) return res.sendStatus(401);
res.sendStatus(200); // acknowledge first
enqueue(JSON.parse(req.body.toString('utf8'))); // your queue: process outside the request
});
Two details in this snippet matter more than they look. Parsing the body as JSON before hashing changes the bytes, so the signature never matches. And doing slow work before you answer makes Meta treat the delivery as failed and send it again.
2. Subscribe the app to fields
In the App Dashboard, open Webhooks for your Instagram setup, paste the callback URL and the verify token, and click verify. Then pick the fields. On Unified Login this lives under Configure webhooks on the API setup with Unified login tab.
Fields are chosen per app, not per account. Every connected account gets every field you selected.
3. Turn notifications on for each account
This is the step to check first when a webhook verifies but stays silent. Subscribing the app to fields does nothing for a given account until you call that account’s /subscribed_apps edge with its token. For Instagram Login:
curl -i -X POST \
"https://graph.instagram.com/v27.0/<INSTAGRAM_ACCOUNT_ID>/subscribed_apps?subscribed_fields=comments,messages&access_token=<INSTAGRAM_USER_ACCESS_TOKEN>"
A successful call returns {"success": true}. With Facebook Login, make the same call on graph.facebook.com against the linked Page ID with a Page access token. With Unified Login, use graph.facebook.com, the Instagram account ID and the Business Integration System User token. Run it inside your connect flow, right after you store the token, so no account is left unsubscribed.
4. Test with a real event
The dashboard’s Test button sends a sample payload, and it proves your endpoint parses JSON. It does not prove delivery for that account. Meta’s own checklist says to trigger a real event too: comment on a post, or send the account a DM from another profile, and confirm your callback receives it, checks the signature and returns 200.
What do the payloads look like?
Comment notifications arrive inside entry[].changes[] with field set to comments:
{
"object": "instagram",
"entry": [{
"id": "<YOUR_USERS_INSTAGRAM_ACCOUNT_ID>",
"time": 1764230400,
"changes": [{
"field": "comments",
"value": {
"id": "<COMMENT_ID>",
"from": { "id": "<INSTAGRAM_SCOPED_ID>", "username": "<USERNAME>" },
"text": "Is this available in blue?",
"media": { "id": "<MEDIA_ID>", "media_product_type": "FEED" }
}
}]
}]
}
That is the Instagram Login shape, where the comment ID is id. The Facebook Login and Unified Login examples name it comment_id and add parent_id for replies, so read both keys if you support more than one setup.
Messaging notifications use entry[].messaging[] instead, each with sender, recipient and timestamp. When your own account sends a message, you get it back with is_echo: true, so filter on that before an auto-reply bot answers itself. The notification examples page has every shape, and it varies by login setup, so test your parser against the one you use.
How does delivery work: retries, batches and duplicates?
Meta’s delivery rules, from the setup guide:
- Your endpoint should answer every notification with
200. - Updates are batched, up to 1,000 per request, but batching is not guaranteed. Loop over
entryand handle each one on its own. - A failed delivery is retried right away, then a few more times at decreasing frequency for 36 hours. After that it is dropped.
- Retries mean duplicates. Deduplicate on the comment ID or the message
midbefore you act. - There is no history endpoint for webhook events. If you need the data later, store it when it arrives.
Retries also mean order is not guaranteed: a reply can arrive before the comment it answers. The patterns for that are in our post on handling out-of-order webhook events.
Why is my Instagram webhook not working?
Work through this in order. Most rows come straight from Meta’s setup guide.
| Symptom | Likely cause | Fix |
|---|---|---|
| Dashboard refuses to verify the URL | Endpoint not returning hub.challenge, wrong verify token, or a self-signed certificate |
Return the challenge as plain text and use a real TLS certificate. In PHP, read hub_challenge: PHP turns the periods into underscores |
| Test button works, real events never arrive | Account never subscribed through /subscribed_apps |
Call the edge for each account after login |
| Works for your own test account only | App still in Development mode | Meta delivers to app users only when the app is Live |
| No comment events from client accounts | Missing Advanced Access | comments and live_comments need Advanced Access, which goes through App Review (see Meta Advanced Access) |
| No comments or mentions on one account | The account is private | Private accounts do not receive comment or mention notifications |
| DMs missing on Unified Login | Client shared the Instagram account but not its linked Page | Meta’s temporary workaround: a separate configuration that also requests the Page and pages_show_list, then have the client reconnect |
| Every signature check fails | Hashing parsed JSON, or the wrong secret | Hash the raw body. Instagram Login apps show both a Meta app secret and a separate Instagram app secret in the dashboard, so try the other one |
| Same comment processed twice | Retries | Store processed IDs and skip repeats |
For DMs lost during an outage on Unified Login, Meta points to the Conversations API (GET /{ig-user-id}/conversations?fields=messages{id,created_time,from,to,message}) to look them up, with a warning that older messages may not come back.
Should you run Instagram webhooks yourself?
If Instagram is your only network and you already have a Meta app with Advanced Access, running your own endpoint is a reasonable build. Budget for the upkeep too: token refresh, per-account subscriptions, deduplication and the next round of setup changes from Meta.
If you publish to several networks, the same work repeats for each one. PostGate receives Meta’s callbacks on its Meta app, verifies the signatures and stores each event once, then forwards a signed comment.created or message.received event to your endpoint, next to the post.published and post.failed events from publishing. The comments and messages docs list the endpoints for reading and replying, and note that some actions still depend on platform review.
Frequently asked questions
Are Instagram webhooks free?
Meta’s webhook docs list no usage fee. The cost is the work: an HTTPS endpoint, App Review for the permissions behind each field, and business verification before production access.
Do Instagram webhooks work with personal accounts?
No. They work for Instagram professional accounts (Business or Creator) connected to your app, and comment and mention notifications only fire on public accounts.
Can I get a webhook when a new Instagram post is published?
Not as a webhook field. Track publishing from your own API calls and check the media status yourself, or poll the account’s media list if posts are made outside your app.
How long does Meta retry a failed Instagram webhook?
Meta retries right away and then a few more times at decreasing frequency for up to 36 hours. Undelivered notifications are dropped after that, so return 200 quickly and process the work in a queue.
What is the verify token in Instagram webhooks?
A string you choose and type into the App Dashboard. Meta sends it back as hub.verify_token during verification so your endpoint can confirm the request came from your own configuration.
