info
If your Meta developer app is in Development
mode and NOT Live
mode, you will need to add your testing instagram account (i.e. the account that you are using to send messages into Instagram Business Account) into Meta Apps
Required Variables
INSTAGRAM_STUDIO_FLOW_SID
(Guide)INSTAGRAM_APP_SECRET
INSTAGRAM_PAGE_ACCESS_TOKEN
INSTAGRAM_WEBHOOK_VERIFY_TOKEN
Setup
- Ensure you have the following before proceeding
- Login to Meta Developer Console
- Select your Meta developer app that is managing your Facebook Page
- Under
Add products to your app
, clickSet up
forMessenger
- Obtain the value for
INSTAGRAM_APP_SECRET
which is underSettings > Basic
- Obtain the value for
INSTAGRAM_PAGE_ACCESS_TOKEN
which is underMessenger > Instagram Settings > Access Token
. Click theGenerate token
button. - Obtain the value for
INSTAGRAM_WEBHOOK_VERIFY_TOKEN
which is underMessenger > Instagram Settings > Webhooks
. The verify token is a self-inserted value and can be any freeform text.
info
Ensure that you have obtained all the necessary values for the variables stated in Required Variables
Configure Incoming Webhook
- Ensure you have deployed Conversations Adapters into your Twilio Flex account
- Ensure you are logged into Meta Developer Console
- Select your Meta developer app
- Under
Messenger > Instagram Settings
, insert your deployed incoming webhook. For theVerify token
, insert any random string that you wish. You will need the value ofVerify token
as you will need to insert them intoGitHub Environments - Secrets
or your.env
file.- For Subscriptions, you only need
messages
. - The Conversations Adapters incoming webhook URL should be in the format of
https://twilio-flex-conversations-adapters-<RANDOMNUMBER>-dev.twil.io/api/instagram/incoming
- For Subscriptions, you only need