n8n Basics: Connect Any Instagram Account — Step by Step
Instagram automation is one of the most powerful ways to save time and scale your social media presence. With n8n, you can connect any Instagram account to your automation workflows — no coding required. This guide walks you through every step, from setting up your Meta developer credentials to triggering your first Instagram-powered workflow in n8n.
Why Connect Instagram to n8n?
Before diving into the setup, it helps to understand what becomes possible once your Instagram account is connected to n8n:
- Auto-reply to comments and DMs using AI-powered responses
- Schedule and publish posts directly from your workflows
- Monitor mentions and hashtags to trigger follow-up actions
- Sync Instagram data with your CRM, spreadsheet, or email platform
- Generate content ideas using AI nodes and post automatically
All of this is possible because n8n supports the Instagram Graph API through the built-in Instagram node and through flexible HTTP Request nodes for advanced use cases.
What You Need Before You Start
Connecting Instagram to n8n requires a few prerequisites. Make sure you have the following ready before starting:
- A Facebook Business Page linked to your Instagram account
- An Instagram Professional account (Business or Creator)
- A Meta Developer account at developers.facebook.com
- A running instance of n8n (cloud or self-hosted)
If your Instagram account is still a personal profile, go to your Instagram settings and switch it to a Business or Creator account first. This is required by the Meta API.
Step 1: Create a Meta App
Log in to developers.facebook.com and navigate to My Apps. Click Create App and choose the Business type. Give your app a name, select your business portfolio, and click Create App.
Once inside your new app dashboard, scroll down and find the Instagram Graph API product. Click Set Up to add it to your app.
Step 2: Configure Instagram Permissions
Inside your Meta app, navigate to App Review → Permissions and Features. You will need to request the following permissions for your use case:
- instagram_basic — to read profile and media data
- instagram_content_publish — to publish posts
- instagram_manage_comments — to read and reply to comments
- instagram_manage_messages — to access DMs
- pages_show_list — to list connected Facebook Pages
For testing purposes, you can use your own account without formal App Review by adding yourself as a Test User under Roles → Test Users.
Step 3: Generate a Long-Lived Access Token
In the Meta app dashboard, go to Tools → Graph API Explorer. Select your app and generate a User Token with the permissions listed above. This short-lived token must then be exchanged for a long-lived token (valid for 60 days) using the following API call:
GET https://graph.facebook.com/v18.0/oauth/access_token?grant_type=fb_exchange_token&client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&fb_exchange_token=SHORT_LIVED_TOKEN
Copy the long-lived token. You will paste this into n8n in the next step.
Step 4: Add Instagram Credentials in n8n
Open your n8n instance and navigate to Credentials → New Credential. Search for Instagram and select the credential type. You will be prompted to enter:
- Access Token — paste the long-lived token you generated
- App ID and App Secret — found in your Meta app's Basic Settings
Click Save. n8n will validate the credentials immediately. If successful, you will see a green checkmark confirming the connection.
Step 5: Find Your Instagram Business Account ID
Most n8n Instagram nodes require your Instagram Business Account ID, not your username. Retrieve it with this API call using your token:
GET https://graph.facebook.com/v18.0/me/accounts?access_token=YOUR_TOKEN
This returns your linked Facebook Pages. For each page, make a second call:
GET https://graph.facebook.com/v18.0/PAGE_ID?fields=instagram_business_account&access_token=YOUR_TOKEN
Copy the id value inside instagram_business_account. This is what you will use inside n8n workflows.
Step 6: Build Your First Instagram Workflow in n8n
Now the fun begins. Open a new workflow in n8n and add an Instagram node. Select your saved credentials and choose an operation such as Get Media, Publish Image, or Get Comments.
A simple starter workflow might look like this:
- Schedule Trigger → runs every morning at 9am
- HTTP Request node → fetches a motivational quote from an API
- Instagram node → publishes the quote as an Instagram post
With n8n, you can extend this further by adding an OpenAI node to generate captions, an Image generation node for visuals, or a Slack node to notify your team after publishing.
Troubleshooting Common Issues
Token expired or invalid
Long-lived tokens last 60 days. Set up an automatic token refresh workflow in n8n using the Graph API token endpoint to keep your connection alive without manual intervention.
Permission denied errors
Double-check that all required permissions are enabled in your Meta app and that your Instagram account is correctly linked to a Facebook Business Page.
Can't find Instagram node in n8n
Make sure your n8n instance is up to date. The Instagram node is available from version 0.200 onwards. For older versions, use an HTTP Request node to call the Graph API directly.
Final Thoughts
Connecting Instagram to n8n opens up a world of automation possibilities for content creators, marketers, and developers alike. Once your credentials are set up, you can build sophisticated workflows that save hours every week — from automated publishing pipelines to AI-powered comment management.
The setup takes about 20–30 minutes the first time, but once complete, your n8n instance becomes a powerful hub for all your Instagram automation needs. Start simple, test your workflow, and then layer in more complexity as you grow.
Ready to automate your Instagram presence? Open n8n and create your first Instagram workflow today.
This post was created with tools we use and recommend: n8n for workflow automation, Turbotic as an AI-native automation alternative, ElevenLabs for AI voiceover, Placid for visual content creation, and Hostinger for reliable VPS hosting. Some links are affiliate links.