Meta App & OAuth Setup
Meta App & OAuth Setup
To connect n8n to Instagram, you need an Instagram App ID (Client ID) and Instagram App Secret (Client Secret) from Meta for Developers.
Follow these step-by-step instructions:
1. Create a Meta Developer App
- Go to Meta for Developers Portal and log in with your Meta account.
- Click Create App in the upper right corner.
- Select Other or Business as the use case/app type, then click Next.
- Choose Business as the app type, enter your App Name and Contact Email, and click Create App.
2. Add Instagram Login Product
- In your app dashboard left sidebar, click Use Cases or Add Product.
- Look for Manage messaging & content on Instagram or Instagram Platform > Instagram API with Instagram Login.
- Click Set Up.
3. Retrieve Instagram App ID & Secret
- In the left sidebar, navigate to:
Instagram Platform└── API setup with Instagram login└── 3. Set up Instagram business login└── Business login settings
- Locate the following credentials:
- 🔑 Instagram App ID: This will be your Client ID in n8n.
- 🔒 Instagram App Secret: Click Show (enter your account password if prompted). This will be your Client Secret in n8n.
4. Set OAuth Redirect URI (Callback URL)
- Open n8n and create a new Instagram OAuth2 API credential.
- Copy the OAuth Callback URL shown in the credential modal (e.g.,
https://n8n.your-domain.com/rest/oauth2-credential/callback). - In Meta App Dashboard, go to Business login settings > Valid OAuth Redirect URIs.
- Paste your n8n callback URL into the field.
- Click Save Changes.
5. Add Instagram Test Users (Development Mode)
While your Meta App is in Development Mode:
- In Meta App Dashboard, navigate to App Roles > Roles > Instagram Testers.
- Click Add Instagram Testers and enter your Instagram username.
- Open the Instagram app on your phone (or web) with that account, go to Settings & Privacy > Website Permissions > Apps and Websites > Tester Invites, and accept the invite.
- Your account is now authorized to log in during development.