Skip to main content

Integrate to Instagram

Prerequisites

  • A valid Meta developer account
  • A valid Facebook Page
  • A valid Instagram business account connected to the Facebook Page
  • Access to manage applications under your TaskingAI workspace

To connect your Instagram account to a Facebook Page, go to your Meta Business Suite and click the Connect Instagram option at the top.

Connect Instagram

Step 1: Create a Meta App

  1. Log in to Meta for Developers and click on My Apps in the top menu. Then, click the Create App button.

Create App

  1. Bind a business portfolio to your app by selecting a business manager account. You can skip this step in development and testing stage, but it is required by Meta for production.

select business

  1. Under Use Cases, click Select an app type, and then choose Business to proceed.

select app type

  1. Enter an App Display Name and Contact Email. Click Create App to finish the process.

app details

Step 2: Setup Instagram Integration details on Meta

  1. In your app’s dashboard, navigate to the Add Product section on the left-hand menu. Find Messenger (NOT Instagram Graph API) and click Set Up.

Add Messenger Product

  1. Navigate to Messenger > Instagram settings on the left-hand menu, and then click Add or remove Pages.

Add a page

  1. Follow the authentication instructions and select the Facebook Page you wish to connect to your instagram account. Click Continue.

Authenticate page

  1. Select the Instagram account you wish to use for creating chatbot, and copy that Account Id for later use in TaskingAI configuration. Click Continue.

Select Instagram account

  1. Once the page is added, click Generate token and copy both the Access Token and the Page Id for use in the TaskingAI configuration later.

Generate Token

  1. Navigate to App settings > Basic in the left-hand panel, then copy both the App Id and App Secret for later use in the TaskingAI configuration.

App settings

Step 3: Register the integration on TaskingAI

After the previous steps, you are ready to configure your Messenger integration on TaskingAI platform.

  1. Log in to TaskingAI console, and navigate to the Applications tab under Workspace.
  2. Click on the application you want to integrate with Instagram.
  3. On the tab selection bar on the top, click on the Channels tab.
  4. Select Instagram and provide the necessary information, including Account ID, Page ID, App ID, App Secret, and Access Token you obtained from previous steps.
  5. Click Activate after filling in the information.

Slack Integration

note

On the top of the configuration, a Webhook Url is displayed. You will need this URL to register a webhook on Slack in the next step.

Step 4: Adding the Callback URL

  1. Under the webhooks section, click Add Callback URL. In the Edit Callback URL popped up form, configure the following parameters and click Verify and save.
  • Callback URL: use the Webhook URL from Step3 as the callback url
  • Verify Token: Enter tkai

Edit Callback URL

  1. In the left-hand navigation pane, click Webhooks, ensure you are on the Instagram subscription page, and find messages subscription. Click Subscribe.

Subscribe to messages

Step 5: Test the integration

Now you can send messages to the Instagram business account, and receive responses from your TaskingAI application.

Test discord integration

note

As your Meta application is in development mode, only users with the role of developer, admin, or tester can interact with the chatbot. To make the chatbot available to all users, you need to submit your app for review and approval by Meta.

To invite your other team members to test the chatbot, you can add them as testers in the app settings.

Invite Testers