Communication
Instagram Webhooks
Meta Instagram API webhooks for professional accounts. Receive comments and live comments on your media, @mentions, direct messages, message reactions, postbacks, read receipts and story insights.
Connecting Instagram to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into Instagram. Then:
- 1Copy your app secret and paste it into this Hookbase source: the App secret from App settings → Basic, or for Instagram Login apps the Instagram app secret under Instagram → API setup with Instagram login
- 2Open Configure webhooks for your setup (Instagram Login: Instagram → API setup with Instagram login; Facebook Login: Webhooks → Instagram object), enter your Hookbase ingest URL as the Callback URL and the Verify token Hookbase generated, then click Verify and save
- 3Subscribe to the fields you need, e.g. comments, mentions and messages
- 4Enable delivery for each account with POST /{ig-account-id}/subscribed_apps?subscribed_fields=comments,messages (or on the linked Page for Facebook Login)
- 5Make the app Live. comments and live_comments need Advanced Access, and private accounts get no comment or mention webhooks
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 → App settings → Basic → App secret (click Show). If you set up webhooks under Instagram → API setup with Instagram login, use the Instagram app secret shown on that page instead.
Instagram event types
11 of the events people route most often. Hookbase accepts every event Instagram sends, whether or not it is listed here.
comments
Someone commented on your media
live_comments
Someone commented on your live broadcast
mentions
Your account was @mentioned in a caption or comment
messages
A direct message (including story replies, shares and your own echoes)
message_reactions
Someone reacted to a direct message
messaging_postbacks
An icebreaker or template button was tapped
messaging_seen
Someone read a message you sent
messaging_referral
Someone entered an existing thread from an ig.me link
messaging_optins
Someone opted in to messages
messaging_handover
Handover Protocol: thread control changed
story_insights
Metrics for a story when it expires (first 24 hours only)
What a Instagram webhook looks like
A comments payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"object": "instagram",
"entry": [
{
"id": "IG_PROFESSIONAL_ACCOUNT_ID",
"time": 1520622968,
"changes": [
{
"field": "comments",
"value": {
"from": {
"id": "IGSID",
"username": "example_user"
},
"media": {
"id": "MEDIA_ID",
"media_product_type": "FEED"
},
"id": "COMMENT_ID",
"text": "Love this!"
}
}
]
}
]
}Start receiving Instagram webhooks
Create a source, paste the URL into Instagram, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free