Prerequisites
Before starting the setup, ensure you have:- A valid Facebook account.
- A valid Instagram Professional account (either Business or Creator type).
- A publicly accessible ChatbotX installation with an HTTPS URL.
Step 1: Create a Meta Developer App
To connect your Instagram account, you first need to create a developer application on Meta’s platform. This app acts as a secure bridge that allows ChatbotX and Instagram to share message data safely.Create a new app

Enter app details

Select a use case

Choose app type

Finish creation

Add the Instagram product

Copy Instagram App ID and App Secret

Step 2: Configure Credentials in ChatbotX
With your Instagram credentials generated and Webhooks configured in Meta, save these settings in ChatbotX to link the integration.Open Integrations
Open the Instagram configuration

Enter your credentials
- Client ID: Paste your Instagram App ID (copied in Step 1-7).
- Client Secret: Paste your Instagram App Secret (copied in Step 1-7).
- API Version: Select v23.0 or higher.
- Webhook Verify Token: A secret string used to validate incoming webhook requests, choose your own value, for example, a random string
Click Save. Instagram will now be available as a channel when creating chatbots.

Step 3: Configure Instagram Business Login Settings in Meta
Before saving settings in ChatbotX, you must set up the Instagram product in the Meta Developer Portal to retrieve your Instagram credentials and establish the webhook connection.Configure Webhooks
- Callback URL: Paste
https://app.yourdomain.com/integrations/instagram/webhook. - Verify Token: Enter a secure random string of your choice (e.g.
INSTAGRAM_VERIFY_TOKEN).

Configure Redirect URL
- Valid OAuth Redirect URIs: Paste
https://app.yourdomain.com/integrations/instagram/callback.

Subscribe to webhook events
messagesmessaging_seenmessage_reactions

Complete app review

Step 4: Test Your Connection
Before you open your chatbot to the public, it is best to test the connection using a test account. This ensures everything is set up correctly without affecting real customers.Register an Instagram Tester

Select the Instagram Tester role

Accept the invitation
Connect the Instagram channel in ChatbotX
Send a test message
Troubleshooting
Insufficient Developer Role Error
Insufficient Developer Role Error
API Access Deactivated Error
API Access Deactivated Error
Invalid redirect_uri Error
Invalid redirect_uri Error
Token Exchange Failure
Token Exchange Failure