Skip to content

Instagram

How to configure Instragram for Openquok

4 min read

Overview

You can connect a professional Instagram account in two ways: Instagram (Business) uses a Facebook Page linked to that Instagram account; Instagram (Standalone) uses Instagram Login directly (no Facebook Page).

Both require a Meta for Developers app. The sections below are Openquok-specific URLs and envs.

Backend environment

Openquok reads credentials only through backend/config/GlobalConfig.ts. Set:

Instagram (Business) — Facebook Login

  • FACEBOOK_APP_ID
  • FACEBOOK_APP_SECRET

Instagram (Standalone) — Instagram Login

  • INSTAGRAM_APP_ID
  • INSTAGRAM_APP_SECRET

Copy from backend/.env.development.example into backend/.env.development.local, then restart the backend.

The frontend base URL used in OAuth redirect URIs comes from FRONTEND_DOMAIN_URL (default http://localhost:5173 for local Vite). For non-HTTPS local URLs, the backend uses the same HTTPS relay pattern as other Meta integrations (see the Threads doc).

OAuth redirect URIs (register in Meta)

Meta redirects the browser to your web app after consent. Register these exact paths on top of your frontend origin (from FRONTEND_DOMAIN_URL), for example:

Instagram (Business) — Facebook Login for Business

https://YOUR-FRONTEND-DOMAIN/account/integrations/social/instagram-business

Instagram (Standalone) — Instagram Login

https://YOUR-FRONTEND-DOMAIN/account/integrations/social/instagram-standalone

For local HTTPS (or relay) examples, mirror the pattern used for Threads in Meta Threads.

Meta app setup (summary)

Create a Meta app

Create an app in Meta for Developers.

Step 1 - Create a Meta app

Select use case

Select Other.

Step 2 - Select Other Type

Select app type

Select Business.

Step 3 - Finish Creating Meta App

Finish Creating Meta App

Step 4 - Finish Creating Meta App

Instagram (Business) flow

When your professional Instagram account is already tied to a Facebook Page, you can connect to it by setting up the Login for Business flow.

Add Facebook Login for Business

In dashboard, select Facebook Login for Business

Step 1 - Add Facebook Login for Business

Set Redirect URI

Add the Instagram (Business) redirect URI from the OAuth redirect URIs (register in Meta) section to your app’s valid OAuth redirect list.

Step 2 - Redirect URI

Request permissions

In the Meta developer app, open the permissions area where you can request advanced access (wording varies—for example Use casesPermissions and features, or App Review). Request access for the scopes below; they match what Openquok’s Instagram (Business) integration asks for during OAuth.

  • instagram_basic
  • pages_show_list
  • pages_read_engagement
  • business_management
  • instagram_content_publish
  • instagram_manage_comments
  • instagram_manage_insights

Step 4 - Set Permissions

Copy your credentials

In the Meta app Settings area, copy App IDFACEBOOK_APP_ID, and App SecretFACEBOOK_APP_SECRET to your env file.

Step 4 - Copy your credentials

Restart the backend. Otherwise, the backend may not pick up your new environment variables.

Instagram (Standalone) flow

Use Instagram (Standalone) when you prefer Instagram Login for a professional account and do not want to route the connection through a Facebook Page or Facebook Login for Business.

Add Instagram product

In dashboard, select Instagram

Step 1 - Add Facebook Login for Business

Set Instagram Business Login

Step 2 - Set up Business Login for Business

This will let you to provide a redirect URL.

Set Redirect URI

Add the Instagram (Standalone) redirect URI from the OAuth redirect URIs (register in Meta) section to your app’s valid OAuth redirect list.

Step 3 - Set Redirect URI

Copy your credentials

Copy Instagram app IDINSTAGRAM_APP_ID, and Instagram app secretINSTAGRAM_APP_SECRET to your env file.

Step 4 - Copy your credentials

Restart the backend. Otherwise, the backend may not pick up your new environment variables.

Add Role and Start testing

Add People

Go to App Roles page and click “Add People”

Step 1 - Add People

Add the Instagram account as Tester

Under additional roles for this app, select Instagram Tester.

Step 2 - Add instagram test user

Enter the Instagram username that should test the app (often your own).

Accept Invitation

You should see a pending invite on Instagram’s manage access page.

Step 3 - Accept invite

Accept it to finish tester setup for that account.

References