We are using Instagram’s Graph API and have implemented a webhook to listen for media shared in Direct messages. When someone shares a post via Direct, the webhook sends us an event payload that contains only an asset_id (e.g., a CDN media identifier).
However, we are unable to find a way to map this asset_id back to the original post (i.e., the media object or permalink on Instagram). We’ve looked through the Instagram Graph API documentation but couldn’t find a way to resolve an asset_id to a media ID or any useful metadata.
What we have:
A webhook event triggered when a user shares a post via Direct message.
The payload includes something like: “asset_id”: “17890012345678901”
What we want:
Find the original post ID or permalink using the asset_id.
What we’ve tried:
Searching through Instagram Graph API endpoints with media IDs and user tokens.
Checking if asset_id is queryable via /media or /media/{media-id}.
Looking for debugging tools or mappings via Meta for Developers portal.
Is there any way to reverse-lookup or resolve an asset_id to its corresponding Instagram post using Instagram Graph API or other official tools?