Instagram Webhook subscription fails

2.4k Views Asked by At

I am trying to enable an Instagram story_insights webhook on a live Facebook App. I am able to receive test data successfully, but won't receive any live data.

The webhook has been configured via the Facebook App Dashboard for an app with both "manage_pages" and "instagram_manage_insights" permissions granted.

I tried to perform a POST request to the {page-id}/subscribed_apps endpoint but couldn't subscribe to the instagram story insights as there is no related subscribed_field.

Is registering the webhook in the app dashboard sufficient to receive data, or do I need to perform some kind of registration for each Facebook Page connected to an Instagram Business account?

3

There are 3 best solutions below

5
On BEST ANSWER

https://developers.facebook.com/docs/instagram-api/guides/webhooks/

With Graph API version 3.2, the /{page-id}/subscribed_apps edge now requires the subscribed_fields parameter, which currently doesn't support Instgram webhooks fields. To get around this, use an older version of the API, or include the subscribed_fields parameter with a non-Instagram field, then unsubscribe from the field later using your app's dashboard.

Just use some field that will most likely not change from your Facebook Page, like "email".

0
On

From the API docs it says ( https://developers.facebook.com/docs/instagram-api/guides/webhooks )

Technically it doesn't matter which Page Field you subscribe to. Your app will not receive notifications of changes to that field unless you configure Page subscriptions in the App Dashboard and subscribe to that field.

1
On

While trying to subscribe on page level through api was giving error, just subscribing 'story_insights' on app worked for me. After this, story insight started coming on their own.