Частичное отключениеshare-external
How to subscribe to receive messages from an Instagram account
1

I followed all the instructions and am able to connect and link a FB page with and instagram account and receive the access token, name, username and IDs for the Instagram Page.

I successfully subscribe to the Instagram messaging webhook

I can also see the FB page here: https://developers.facebook.com/apps/APP_ID/messenger/ig-settings/?business_id=BUSINESS_ID But I think it should be the Instagram page instead.

When I send a message to Instagram, nothing happens, but when I send it to the FB page, I get the webhook. Everything says that is under the Instagram API and Webhooks, but works for Facebook somehow.

Ricardo Andrea
Вопрос задан около 5 мес. назад
Выбранный ответ
1

You need to send an api call to https://graph.facebook.com/v20.0/{pageId}/subscribed_apps?access_token={accessToken}

And make sure you also do this on the page you instagram page is connected to.

body [ "subscribed_fields" => [ "messages", "messaging_postbacks", "messaging_optins", "messaging_referrals", "feed" ] ]

11 июня в 18:37
Vibrant
Vibrant

Do not forget to setup you web hook on the app configuration for web hooks as well.

11 июня в 18:40
Ricardo Andrea

I have already done both, send the API call to the subscribed apps and configured the Webhook for Instagram and subscribed for the mentioned webhooks.

I see the FB page, but not the instagram one.

Is there anything else I am missing?

12 июня в 08:17