A verified Instagram webhook only proves your endpoint answers Meta’s GET challenge. Real DMs need four more things. The app must be Live, and its access level must cover the people writing to you. Each professional account needs a subscribed_apps call. The messages field must be selected, with instagram_business_manage_messages granted. If DMs are still missing after that, another app or Meta Business Agent may hold the conversation, or Meta may have disabled the webhook. Run the checks in the order below, starting with a raw logger that shows whether Meta sends anything at all.
Initial setup for this route is in Instagram messaging API setup with Instagram Login. This post starts where that one ends: the webhook verified, and the DMs are missing. Work through these checks in order:
- Point the webhook at a raw logger and send a DM from a second account.
- Confirm the app is Live and has the access level for the people writing to you.
- Call
subscribed_appsfor each account, withmessagesselected and both permissions granted. - Check the Allow access to messages toggle and look for a disabled-webhook alert.
- Look for
standbyevents from another app or Meta Business Agent.
Find out whether Meta sends anything
A reply in n8n community thread 310460, titled “Instagram DM webhook verified and subscribed, but real DMs never reach n8n (curl works)”, suggests the right first step. Point the webhook at a raw request logger and see whether Meta calls it at all. A test request you send yourself with curl only proves your workflow runs. It says nothing about Meta’s delivery.
This logger uses only the Python standard library. It answers the verification GET, returns 200 to every POST at once and prints each event’s shape. Put it behind an HTTPS tunnel or reverse proxy, since Meta calls an HTTPS callback URL.
# raw_logger.py
# usage: VERIFY_TOKEN=YOUR_VERIFY_TOKEN PORT=8080 python raw_logger.py
import json
import os
from datetime import datetime, timezone
from http.server import BaseHTTPRequestHandler, HTTPServer
from urllib.parse import parse_qs, urlparse
VERIFY_TOKEN = os.environ.get("VERIFY_TOKEN", "")
PORT = int(os.environ.get("PORT", "8080"))
def now():
return datetime.now(timezone.utc).isoformat(timespec="seconds")
class Handler(BaseHTTPRequestHandler):
def _reply(self, status, text):
data = text.encode()
self.send_response(status)
self.send_header("Content-Type", "text/plain")
self.send_header("Content-Length", str(len(data)))
self.end_headers()
self.wfile.write(data)
def do_GET(self):
query = parse_qs(urlparse(self.path).query)
mode = query.get("hub.mode", [""])[0]
token = query.get("hub.verify_token", [""])[0]
challenge = query.get("hub.challenge", [""])[0]
ok = mode == "subscribe" and VERIFY_TOKEN and token == VERIFY_TOKEN
print(now(), "GET verification", "accepted" if ok else "rejected")
self._reply(200 if ok else 403, challenge if ok else "forbidden")
def do_POST(self):
length = int(self.headers.get("Content-Length", "0"))
raw = self.rfile.read(length)
self._reply(200, "EVENT_RECEIVED")
signed = "yes" if self.headers.get("X-Hub-Signature-256") else "no"
print(now(), "POST", self.path, "signature header:", signed)
try:
body = json.loads(raw)
except ValueError:
print(" body is not JSON:", raw[:500])
return
print(" object:", body.get("object"))
for entry in body.get("entry", []):
for item in entry.get("messaging", []):
kinds = [k for k in item if k not in ("sender", "recipient", "timestamp")]
print(" entry.id:", entry.get("id"), "sender:", item.get("sender", {}).get("id"), "keys:", kinds)
for key in entry:
if key not in ("id", "time", "messaging"):
print(" other entry key:", key)
print(" raw:", raw.decode(errors="replace")[:2000])
def log_message(self, *args):
pass # silence the default access log
if __name__ == "__main__":
print(f"listening on :{PORT}")
HTTPServer(("", PORT), Handler).serve_forever()
Send a DM from a second Instagram account and watch the output. If nothing arrives, the problem sits on Meta’s side of the delivery: app mode, access, subscription or routing. If events arrive with keys: ['message'], your own workflow drops them, and the checks below won’t help. If they arrive under a key other than messaging, the logger prints it, which is how a standby delivery shows up.
Meta’s webhook examples (accessed 2026-11-24) have no verbatim text DM sample. They describe the envelope: object: "instagram", then entry[].id for the professional account, then messaging[] with sender.id (the IGSID), recipient.id, timestamp and message.mid with text. Events your own account sent carry is_echo: true (see one message model for four channels).
Check app mode and access level
The webhooks setup page (accessed 2026-11-24) requires the app to be Live before it receives notifications for app users. The requirements table on that page lists Advanced Access for Instagram Login.
Meta’s Messenger Platform webhooks page (accessed 2026-11-24) names two access levels. It reads “Standard Access to receive notifications from people who have a role on your app”. It reads “Advanced Access to receive notifications from your customers, people who do not have a role on your app”. Advanced Access “Requires App Review”. The page doesn’t say explicitly that it covers Instagram Login apps. That split would explain DMs from your own test account arriving while DMs from customers don’t.
The Instagram messaging API page (accessed 2026-11-24) adds the tester side: “Your app testers must have a role on your app.” Testers also need the permissions granted and a role on the professional account. Other replies in the n8n thread suggest that, in Development mode, both the sending and the receiving account must be Instagram Testers. Advanced Access applies “if your app serves Instagram professional accounts you don’t own or manage”.
Subscribe each account to the messages field
Verifying the callback URL in the App Dashboard doesn’t subscribe any account. Each professional account needs its own subscribed_apps call with its own Instagram User access token. Meta’s sample uses v27.0, a version its versions table doesn’t list yet, so this uses v26.0:
curl -i -X POST "https://graph.instagram.com/v26.0/$IG_ACCOUNT_ID/subscribed_apps?subscribed_fields=messages&access_token=$IG_USER_TOKEN"
Success returns {"success": true}. Run it for every account you onboard.
The setup page’s limitations say “You cannot select fields for each app user account. An account receives every field selected for the app.” Select messages in the App Dashboard as well as in the call, or the account won’t get it.
For Instagram Login, messages needs instagram_business_basic and instagram_business_manage_messages (webhook fields, accessed 2026-11-24). The same pair covers messaging_postbacks, messaging_seen, message_reactions, messaging_handover, standby, messaging_referral and messaging_optins. The messaging API page spells two of them messaging_reactions and messaging_referrals. messages is spelled the same on both pages, so it isn’t the cause here. Check that the token you used was granted both permissions.
Turn on Allow access to messages
The account owner may need to change one setting in the Instagram app. Meta documents the path as “Instagram Settings > Messages and story replies >Message controls > Connected Tools > toggle Allow Access to Messages” (Instagram messaging get started, accessed 2026-11-24).
That page covers the Page-linked login flow. Meta’s Instagram Login pages don’t mention the toggle. Three replies in the n8n thread point to it for an Instagram Login app anyway, and one says it resets when the account reauthorizes. Check it on the professional account, and check it again after any new login.
Look for a disabled webhook
A webhook that verified once can still go quiet later. The Messenger webhooks page says Meta sends an alert after 15 minutes of failed deliveries, and a “Webhooks Disabled” alert after 1 hour. That page doesn’t name Instagram Login apps. A deploy that returned errors for an hour can leave you with a verified URL that no longer receives anything. Check the app’s alerts and the webhook status in the dashboard, and answer every POST with 200 before you process it, as the logger does.
Check whether another app or Business Agent holds the thread
When several apps connect to the same account, routing decides who gets the message. Meta’s conversation routing page (accessed 2026-11-24) says “Meta no longer supports the Handover Protocol for Instagram.” Under the default setup, all connected apps receive messaging webhooks.
When Meta Business Agent owns the conversation, other apps receive the messages on standby instead of messages. Meta’s instruction is “Do not respond to standby messages.” Wait for messaging_handovers with pass_thread_control. An untagged send to a thread the Business Agent owns fails with error 100, subcode 2534037. The exception is when “Take control of conversations with your Business Agent” is enabled, and it’s off by default.
The routing setup lives in Page Settings, so that page describes the Page-linked flow. It doesn’t address Instagram Login apps, but standby is still a listed Instagram Login webhook field. If the logger shows standby events, add standby,messaging_handover to subscribed_fields and handle them as Meta describes. The Messenger side of routing is in Messenger handover is now Conversation Routing. The WhatsApp version of the same behavior is in Meta Business Agent and the standby webhook.
When Conversations returns an empty list
The Conversations API (accessed 2026-11-24) lists threads with this call:
curl -s "https://graph.instagram.com/v26.0/me/conversations?platform=instagram&access_token=$IG_USER_TOKEN"
A result looks like {"data":[{"id":"<CONVERSATION_ID>","updated_time":"<UNIX_TIMESTAMP>"}]}. Add user_id=<IGSID> to fetch one conversation.
Meta documents one case that empties the list. Conversations from people who don’t follow the account “will appear in the Requests folder”. Those “that have not been active for 30 days will not be returned in API calls.” Meta doesn’t explain an empty list for a fresh conversation, or how Development mode affects this endpoint. Our reading is that the same access rules apply as for webhooks. Test from an account with a role on the app before you conclude the API is broken.
Accept both share and ig_post attachments
After DMs arrive, check how you parse post shares. Meta’s pages disagree on the timeline. The Messenger changelog entry of October 30, 2025 (accessed 2026-11-24) says that “Starting November 3, 2025, the webhook payload for Instagram post shares will include two attachments”. It adds that “The old share attachment type will continue to be supported for Instagram posts until February 1, 2026.”
The Instagram page on the change says “The transition period described on this page ended on February 1, 2026” (what’s new in webhooks, accessed 2026-11-24). It also says “New integrations must support the ig_post attachment type.” Its payload uses ig_post_media_id, title and url.
The same changelog’s entry of April 27, 2026 says “The legacy share attachment type is being removed from Instagram post share webhook payloads”. Webhooks “will return only the ig_post attachment once rollout reaches your app”. Apps can ask developer support for an exclusion. Meta’s messages webhook reference doesn’t list share at all, and gives ig_post a payload id instead of ig_post_media_id.
Meta’s pages give three versions, so accept both types and both ID names. This parser takes one messaging[] item and returns each shared post once, preferring ig_post when both attachments describe the same URL. The two sample events are illustrative, built from the shapes on Meta’s pages.
// shared-posts.mjs
// usage: node shared-posts.mjs
const SHARE_TYPES = new Set(["share", "ig_post", "post", "reel", "ig_reel"]);
export function sharedPosts(item) {
const found = new Map();
for (const att of item.message?.attachments ?? []) {
if (!SHARE_TYPES.has(att.type)) continue;
const p = att.payload ?? {};
const post = {
type: att.type,
url: p.url ?? null,
title: p.title ?? null,
mediaId: p.ig_post_media_id ?? p.id ?? null,
};
const key = post.url ?? post.mediaId ?? `${att.type}:${found.size}`;
const prev = found.get(key);
if (!prev) {
found.set(key, post);
} else if (prev.type === "share") {
// a newer attachment for the same post replaces the legacy share
found.set(key, { ...post, mediaId: post.mediaId ?? prev.mediaId });
}
}
return [...found.values()];
}
const legacy = {
sender: { id: "IGSID" },
recipient: { id: "IG_ACCOUNT_ID" },
timestamp: 1764000000000,
message: {
mid: "MID_1",
attachments: [
{ type: "share", payload: { url: "https://www.instagram.com/p/EXAMPLE/" } },
{ type: "ig_post", payload: { ig_post_media_id: "MEDIA_ID", title: "Post caption", url: "https://www.instagram.com/p/EXAMPLE/" } },
],
},
};
const current = {
sender: { id: "IGSID" },
recipient: { id: "IG_ACCOUNT_ID" },
timestamp: 1764000000000,
message: {
mid: "MID_2",
attachments: [{ type: "ig_post", payload: { id: "MEDIA_ID", title: "Post caption", url: "https://www.instagram.com/p/EXAMPLE/" } }],
},
};
console.log(sharedPosts(legacy));
console.log(sharedPosts(current));
Both calls print one post with type: 'ig_post' and mediaId: 'MEDIA_ID'. Store the URL as well as the ID, since a legacy share carries only the URL. The messaging API page confirms that “Only the URL for the shared media or post is included in the webhooks notification when a customer sends a message with a share.”
If you then fetch the shared media by ID, media_url can be missing. Meta’s Instagram changelog of July 30, 2026 (accessed 2026-11-24) says “The media_url field on the IG Media endpoint is now omitted from responses” in some cases. The cases are copyrighted or flagged audio, and reels with downloads turned off. That entry is about the IG Media endpoint, not about the DM webhook, so fall back to the post URL. How shares and stories sit next to Messenger events on one endpoint is in receive Messenger and Instagram messages on one webhook endpoint.
Z-API Omni team