Credentials Configuration
Credentials Configuration
The node supports two authentication types: OAuth2 (Business Login) and Access Token (Direct / Long-Lived Token).
1. Instagram OAuth2 API (Recommended)
OAuth2 is the recommended approach for automated token refreshing and standard Meta authorization flow.
Credential Fields
| Field | Description | Default Value |
|---|---|---|
| Client ID | Instagram App ID from Meta Dashboard | (Required) |
| Client Secret | Instagram App Secret from Meta Dashboard | (Required) |
| Scope | Comma-separated list of OAuth permissions | instagram_business_basic, instagram_business_content_publish, instagram_business_manage_messages, instagram_business_manage_comments |
| API Version | Meta Graph API Version | v26.0 |
| Base URL | Instagram Graph API Endpoint | https://graph.instagram.com |
How to Connect
- In n8n, go to Credentials > New Credential.
- Select Instagram OAuth2 API (Business Login).
- Paste your Client ID and Client Secret.
- Click Connect my account (or Sign in with Instagram).
- A popup window will prompt you to log into Instagram and grant the requested permissions.
- Click Save.
2. Instagram Access Token API
If you generate direct User Access Tokens or Long-Lived Tokens (valid for 60 days) via Meta Graph API Explorer or custom token workflows, use this credential type.
Credential Fields
| Field | Description | Default Value |
|---|---|---|
| Access Token | Short-lived or 60-day Long-Lived User Access Token | (Required) |
| API Version | Meta Graph API Version | v26.0 |
| Base URL | Instagram Graph API Endpoint | https://graph.instagram.com |