Skip to main content

Instagram Integration

Integrating Instagram with FahemAI allows your custom agent to communicate directly with customers via your Instagram pages. This integration also enables you to take over the conversation whenever you want and communicate with users yourself through Instagram's direct messaging. It provides a seamless and efficient way to handle inquiries and automate responses, while giving you the freedom to interact with your customers whenever you choose.

Getting an Instagram Business Account

To set up an Instagram Business Account, you need to create an Instagram account or use an existing one. Click here for more details.

Setting up Instagram for Connection

Step 1: Switch to a Professional Account

Follow this guide to switch your Instagram account to a Professional account. Conversion Guide.

Step 2: Allow Access to Messages

Follow this guide to allow access to messages. Access Guide.

Meta Developer Portal Setup

Before connecting to FahemAI, you need to set up an app on the Meta for Developers portal and link it to your Instagram Professional account.

Meta App Creation

  1. Create a new app on Meta for Developers.
  2. Choose Other > Business as the app type.
  3. Add the Instagram Graph API product to your app.

Configure Instagram Professional Account

  1. Ensure your Instagram account is a Professional (Business/Creator) account.
  2. Link your Instagram account to a Facebook Page.
  3. In Instagram settings under Messages and story replies, ensure Allow Access to Messages is enabled.

Get API Credentials

  1. In the Meta portal, go to App Settings > Basic to get your App ID and App Secret.
  2. Use the Graph API Explorer or App Dashboard to generate a long-lived Access Token with instagram_manage_messages permission.

Connecting in FahemAI

Once you have your credentials, follow these steps to integrate:

Select Instagram Adapter

  1. Go to the Bots list in your dashboard.
  2. Click on the (+) button.
  3. Select Instagram from the available options.
Select Instagram Adapter

Configure Credentials

Enter the information from the Meta portal:

  1. Paste your App ID and App Secret.
  2. Paste your Access Token.
Configure Instagram Credentials

Set Webhook

  1. Enter your Webhook Base URL.
  2. Set the Webhook Path (usually /adapter/instagram/webhook).
  3. Enter your Verify Token (e.g., aiapproachwebhook).
  4. Set the API Version.
Set Webhook and API Version

Save and Test

  1. Click Save to activate the integration.
  2. Now, send a DM to your Instagram account to test the AI's responses.
Success

Success! Your bot is now live on Instagram. It will respond immediately to messages sent to your Professional account.

Need help?

Need help? If you have any questions, feel free to reach out to us.