How to Generate Access Token and Create Connection for Instagram DM Automation

Status
Not open for further replies.

This guide walks you through generating an access token to enable Instagram DM automation using the Meta Developer Platform and creating a connection with it in Pabbly Connect.

Prerequisites​

  • A public Instagram Professional or Business account
  • A Meta (Facebook) account


Step 1: Go to Meta Developers Portal​

  1. Open developers.facebook.com
  2. Log in with your Facebook account
  3. Click My Apps in the top menu
    1768377363491.png


Step 2: Create a New App​

  1. Click Create App
    1768387390490.png
  2. Enter an App name (anything you like)
    1768377568139.png
  3. Enter your App contact email
  4. Click Next


Step 3: Select Use Cases​

  1. Choose Filter by Business messaging
    1768378305260.png
  2. Choose Manage messaging & content on Instagram
  3. Click Next

Step 4: Select Business Portfolio​

  1. Choose a business portfolio to connect, or select "I don't want to connect a business portfolio yet"
    1768378370959.png


    1768378481728.png
  2. Click Next to continue
    1768378545715.png

Step 5: Open API Setup with Instagram Login​

  1. In your app Dashboard, go to the left sidebar
    1768378767791.png
  2. Click Use Cases
  3. Click on Customize

Step 6: Add Required Messaging Permissions​

Under "1. Add required messaging permissions", make sure these are enabled:
  • instagram_business_basic
  • instagram_manage_comments
  • instagram_business_manage_messages
    1768378868255.png


Step 7: Add Your Instagram Account as Tester​

  1. Go to App rolesRoles in the left sidebar
  2. Click Add People

    1768379135506.png
  3. Search for your Instagram username
  4. Select Instagram Tester as the role and click Add

    1768379275724.png
  5. The status will show Pending
    1768379418406.png

Step 8: Accept the Tester Invitation​

  1. Open Instagram (app or web)
  2. Go to SettingsWebsite permissionsApps and websites
    1768384428348.png

    1768384473339.png

    1768384502976.png
  3. Find your app and Accept the invitation
    1768384544294.png
Note: Tokens can only be generated for public Instagram accounts.

Step 9: Generate Access Token and Copy Account ID​

  1. Return to Meta Developer Portal
  2. Click on Use Cases, then click on Customize
    1768384742137.png
  3. Under "2. Generate access tokens", find your Instagram account
  4. Click Generate token
    1768385203089.png

    1768385280421.png

    1768385344400.png
  5. Copy the token immediately — it is displayed only once
  6. After that, toggle on the Webhook Subscription.
    1768386633084.png
  7. You can also able to see the account ID, copy and save it somewhere.
    1769068087219.png
Important: Keep this token secure. Do not share it publicly.

Step 10: Create a connection in Pabbly Connect​

  1. Goto Pabbly connect platform and create a workflow.
  2. Click on add trigger and choose your app "Instagram DM automation".
  3. Select App Event for an example "New message" and click on "connect".
    1769068830818.png
  4. Provide data for input fields: Access Token and Account Identifier ( Refer to Step 9 ), and click on save
    1769068927525.png
  5. Your connection is now ready to accept the webhook response.


 

Attachments

  • 1768377437560.png
    1768377437560.png
    167.2 KB · Views: 15
  • 1768377494489.png
    1768377494489.png
    50.7 KB · Views: 14
  • 1768378997763.png
    1768378997763.png
    82.8 KB · Views: 13
  • 1768384332747.png
    1768384332747.png
    52 KB · Views: 13
  • 1769068062304.png
    1769068062304.png
    46.4 KB · Views: 2
Last edited:
Status
Not open for further replies.
Top