Guides

Getting started / Connect Instagram*

Set up Meta* and connect Instagram*

Create a Meta* app and connect your Instagram* account to Director.

Director 0.4.0+Unified Login

Before you start

Open your Director admin panel and keep it in a separate tab. You will need Facebook* and Instagram* accounts.

This guide connects your own Instagram* account. Creating your first automatic reply will be covered in the next guide.

The screenshots show the Russian interface. The steps below describe the corresponding controls in English.

1. Create a Meta* app

Open My Apps in the Meta* developer dashboard. If this is your first visit, Meta* may ask you to register as a developer. Sign in with Facebook* and complete the registration steps to reach your app list.

Click Create App.

Start with Create App.
Start with Create App.

Enter an app name and a contact email, then click Next. Choose a name you will recognize; our example uses IDir.

Enter an app name and an email you check.
Enter an app name and an email you check.

On the Use cases step, choose Business messaging, select the use case for managing Instagram* messages and content, then click Next.

Select the Instagram* use case.
Select the Instagram* use case.

On the Business step, select your business portfolio. It will manage the app: its administrators can change the app settings and roles.

Choose a portfolio from the list, or create one here.
Choose a portfolio from the list, or create one here.

If you do not have a portfolio, click Create a business portfolio. Enter its name, your first and last names, and your business email, then create it. Skip this form if you selected an existing portfolio.

Use this form only if you need a new portfolio.
Use this form only if you need a new portfolio.*

On the Requirements step, our setup showed No requirements found, so we continued. If Meta* shows additional requirements, leave a comment in the Director channel with a screenshot that hides personal details and secrets. We can look at what differs in your case.

Review your details on the Overview step and finish creating the app.

On the app dashboard, open the customization step for the Instagram* messages and content use case.

Open the Instagram* use case settings.
Open the Instagram* use case settings.

2. Create a login configuration

Select API setup with Unified login on the left. Under Configure your app, click Create new configuration.

Use Unified Login for a new app.
Use Unified Login for a new app.*

The dialog already sets these template values:

  • System-user access token (SUAT).
  • No token expiration.

These values cannot be edited in this dialog. Click Create from template.

Create the configuration with a system-user token and no expiration.
Create the configuration with a system-user token and no expiration.*

A Configuration ID will appear next to the new configuration name. Copy it: Director will need it as config_id in the next step.

Copy the configuration ID using the icon beside the number.
Copy the configuration ID using the icon beside the number.*

Use a token with no expiration. Director does not automatically renew Unified Login tokens with a limited lifetime.

3. Copy the app keys into Director

In Meta*, open App settings → Basic. Find the App ID and App secret. Click Show to copy the secret.

Get the ID and secret from your Meta* app basic settings.
Get the ID and secret from your Meta* app basic settings.

In Director, open Meta app*, select Unified Login, and enter:

  • Meta App ID*: the app ID from Meta* basic settings.
  • Meta App Secret*: the secret for that app.
  • Configuration ID (config_id): the number from the previous step.

Click Save.

Fill in the three fields and save your settings.
Fill in the three fields and save your settings.*

The adjacent Instagram Login* option is for previously configured apps. Choose Unified Login for this guide. The app ID and configuration ID are different numbers; copy each into its own field.

Director will show the values to copy back into the Meta* dashboard. Use the copy buttons to the right of the fields.

Use the values from your own Director installation.
Use the values from your own Director installation.*

Do not publish or share your app secret, verification token, or access tokens.

4. Add the redirect URL

Copy the Redirect URL from Director. In Meta*, return to API setup with Unified login → Configure your app.

Paste the address into the field for registering a new redirect URL and click Save. The saved address will appear in the list, along with a confirmation message.

The redirect URL ends in /instagram/callback.
The redirect URL ends in /instagram/callback.*

5. Configure webhooks

Webhooks deliver Instagram* events to Director. In the same Meta* section, expand Configure webhooks and copy two values from Director:

  • Callback URL into the callback URL field.
  • Verify token into the verification token field.

Leave the client certificate switch off and click Verify and save.

Copy the webhook URL and verification token, then verify them.
Copy the webhook URL and verification token, then verify them.*

After verification, Meta* will show the webhook fields. Subscribe to these four:

  • comments;
  • messages;
  • messaging_postbacks;
  • messaging_seen.

Each of the four fields should show an active subscription.

Enable these four webhook subscriptions.
Enable these four webhook subscriptions.

Return to Director. In the verification panel on the right, run the address check and refresh the Meta* verification status. You should see a successful address check and the date Meta* verified your webhook.

Check that the address responds and Meta* verification has a date.
Check that the address responds and Meta* verification has a date.

6. Add the privacy policy URL

Copy the Privacy policy URL from Director. In Meta*, open App settings → Basic and paste it into the privacy policy URL field. Click Save changes at the bottom of the page.

Use the privacy policy URL provided by Director.
Use the privacy policy URL provided by Director.

7. Add your Instagram* as a tester

Return to API setup with Unified login, expand Generate access tokens, and click Add account.

Start adding your Instagram* account.
Start adding your Instagram* account.

Click Continue in the dialog. Meta* says the account must be professional and public. If you have a personal Instagram* account, switch it to a professional account in Instagram* settings first.

In the next dialog, select the Instagram Tester* role, find your Instagram* username, and click Add.

Select the Instagram* Tester role and your account.
Select the Instagram* Tester role and your account.

Open Instagram* in a browser, under Apps and Websites, and sign in to that same account. Open Tester Invites, find your app, and click Accept. In our example, the invitation is named IDir-IG.

We recommend doing this in a browser: we could not find this tab in the Instagram* mobile app.

Accept the new app invitation in Instagram*.
Accept the new app invitation in Instagram*.

We did not need to publish the Meta* app to connect our own account this way. You do not need to manually generate or copy an access token into Director either.

8. Connect Instagram* in Director

In Director, open Accounts and click Connect Instagram*.

Start the connection using this button in Director.
Start the connection using this button in Director.*

On the Meta* screen, choose Continue with Instagram*.

Choose Instagram* sign-in.
Choose Instagram* sign-in.

Confirm sign-in to the account you added as a tester.

Check the username and confirm sign-in.
Check the username and confirm sign-in.*

The sign-in choice screen may briefly reappear. In our setup it moved to the next step by itself after a short pause. Wait for it to continue.

Choose the business portfolio where Meta* lists the Instagram* account you want, then select that account. Leave Ad Accounts · Optional empty; an advertising account is not needed for this connection. Click Continue.

Choose the portfolio and Instagram* account you want to grant access to.
Choose the portfolio and Instagram* account you want to grant access to.

This portfolio can differ from the one chosen when creating the app. That choice set who manages the app; this one grants access to Instagram*. If the same portfolio lists the account you need, select it. You do not need to move your app or Instagram* just to make the names match.

Check the app name and selected Instagram* account. On the permissions screen, click Save and wait to return to Director.

Check the app and account before granting access.
Check the app and account before granting access.*

Your Instagram* will appear under Accounts with an active status.

Instagram* is connected to Director.
Instagram* is connected to Director.

The connection is complete. Creating an automatic reply and testing it with a comment will be covered in the next guide.

Troubleshooting

Meta* does not verify the webhook

Copy the URL and token from Director again. Run the address check: your installation must be reachable over HTTPS from the internet. If your server address changed, update the URLs in Meta* too.

Your Instagram* is missing from the list

Check which account you signed in to, the selected portfolio, and whether you accepted the tester invitation. If the account is not listed in that portfolio, check your access to it in Meta Business Suite*.

You forgot which portfolio manages the app

Open App roles → Roles in the Meta* developer dashboard. The Meta Business Suite* account block shows which business manages the app.

You saved the keys, but Instagram* has not appeared

Open Accounts → Connect Instagram* and finish signing in. Saving the app keys alone does not connect your Instagram* account.

If you have questions, leave a comment in the Director channel. Tell us which step you reached and include a screenshot without personal details, secrets, or tokens.

* Meta Platforms Inc. has been designated an extremist organization in Russia. Its activities relating to Facebook and Instagram are banned in Russia.