Hey everyone! ![]()
I’m excited to share a new community node I’ve built: @rizkifirmansyah/n8n-nodes-instagram-api! ![]()
If you’ve ever tried automating Instagram in n8n, you might have run into the frustrating requirement where Instagram accounts had to be linked to a Facebook Page via legacy Facebook Graph API flows.
This node leverages the Instagram API with Instagram Login (Business Login for Instagram) via Meta’s Graph API (graph.instagram.com). It allows you to connect directly to Instagram Professional accounts (Business & Creator) without needing a Facebook Page connection!
Key Highlights
-
Direct Instagram Login (OAuth2 & Long-Lived Token)- Connect directly using Meta’s Instagram Business Login OAuth 2.0 flow.
- Also supports 60-day Long-Lived User Access Tokens for quick setups.
-
Native AI Agent Tool Support (LangChain / n8n AI)- Connect the node directly to the AI Agent node’s
Toolconnector. - Enables LLMs (OpenAI, Claude, Gemini, etc.) to autonomously look up profiles, reply to comments, send DMs, publish content, and fetch analytics on demand!
- Connect the node directly to the AI Agent node’s
-
Full Media & Publishing Suite (with Async Container Polling)- Reels & Videos: Automatically polls Meta’s container status (
FINISHED/ERROR) asynchronously so your workflow doesn’t fail on long video processing. - Carousels: Publish mixed photo/video carousels (2–10 items).
- Stories & Photos: Publish single photos or Instagram Stories.
- Reels & Videos: Automatically polls Meta’s container status (
-
Comment Management & Moderation- Read top-level comments and nested replies.
- Post comments & reply directly to user comments.
- Hide, unhide, or delete comments (great for anti-spam workflows).
-
Direct Messaging (Instagram Messaging API)- Send text messages and rich media attachments (images, video, audio, files) via IGSID.
- Retrieve conversation threads and message history.
-
Comprehensive Analytics & Insights- Account-level metrics (reach, views, profile visits, accounts engaged, followers, website clicks).
- Media-level metrics (reach, saved, shares, likes, comments, video plays).
- Convenient “Select All” or individual metric selection.
-
Raw Graph API Passthrough- Execute custom GET, POST, or DELETE requests against Meta Graph API endpoints with automated authentication.
Installation
You can install it directly inside your n8n instance:
-
Go to Settings > Community Nodes.
-
Click Install a community node.
-
Enter the package name:
@rizkifirmansyah/n8n-nodes-instagram-api -
Accept the prompt and click Install.
Example Use Cases
AI Instagram Customer Support / DM Assistant: Connect Instagram to an AI Agent to answer product inquiries via DMs or comments 24/7.
Automated Content Scheduling: Schedule and auto-publish Reels & Carousels directly from Google Drive, Airtable, or Notion.
Automated Comment Moderation: Check incoming comments with sentiment analysis / moderation models and auto-hide toxic/spam comments.
Weekly Social Analytics Sync: Fetch weekly account reach and engagement insights and send summaries to Slack, Notion, or Google Sheets.
Links & Resources
Documentation & Setup Guide: https://instagram-n8n-node.rizkifirmansyah.com/
NPM Package: https://www.npmjs.com/package/@rizkifirmansyah/n8n-nodes-instagram-api
GitHub Repository: https://github.com/legenhand/n8n-nodes-instagram-api
I’d love to hear your feedback, thoughts, or feature requests! If you find any issues or have suggestions, feel free to drop a comment below or open an issue on GitHub.
Happy automating! ![]()