npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-instagram-token

v2.4.2

Published

N8N nodes for Instagram API integration with access token authentication

Readme

n8n-nodes-instagram-token

Instagram Banner npm version License: MIT n8n

Professional N8N community nodes for Instagram API integration with access token authentication.

📌 Fork Notice: This is a fork of n8n-nodes-instagram-integrations with enhanced token management and additional features.

InstallationFeaturesQuick StartDocumentation


🔄 What's Different from the Original?

This fork includes several enhancements over the original n8n-nodes-instagram-integrations:

New Features:

  • Comment Management - Reply to comments automatically, hide/unhide, and delete comments
  • Enhanced Token Management - Automatic refresh with smart fallback
  • Better Error Handling - More detailed debugging and logs
  • Format Validation - Proper audio format support (AAC, M4A, WAV, MP4)
  • Performance Improvements - Token caching and optimization

🔧 Technical Improvements:

  • Access Token API - Simplified authentication method
  • Automatic Token Refresh - No more "refreshToken is required" errors
  • Smart Fallback - Uses original token if refresh fails
  • Enhanced Logging - Better debugging capabilities

🚀 Features

🔐 Access Token Management

  • Automatic token refresh - Tokens refresh automatically before expiration
  • Smart fallback - Uses original token if refresh fails
  • No more "refreshToken is required" errors - Intelligent token lifecycle management
  • Access Token API - Simple authentication with automatic refresh
  • Auto-discovery - Automatically fetches Instagram Business Account ID

📬 Instagram Messaging

  • Text Messages - Send formatted text with up to 1000 characters
  • Image Messages - Share images via public HTTPS URLs
  • Audio Messages - Send voice messages (AAC, M4A, WAV, MP4 formats)
  • Video Messages - Share video content
  • Media Upload - Upload and publish photos, videos, reels, and stories
  • Private Replies - Send private replies to commenters directly (with optional quick replies)

💬 Interactive Templates

  • Button Templates - Up to 3 action buttons (web links or postbacks)
  • Generic Templates - Carousel cards with images and buttons
  • Quick Replies - Up to 13 quick response options

📝 Content Management

  • Create Posts - Single images, videos, and carousel posts
  • Create Reels - Short-form video content
  • Create Stories - Temporary 24-hour content
  • Comment Management - Reply to comments, hide/unhide comments, and delete comments

🔔 Webhook Events

  • Message Events - Incoming messages, postbacks, quick replies
  • Comment Events - New comments and mentions
  • Opt-in Events - User subscription confirmations

📋 Prerequisites

  • n8n (v1.0.0 or higher)
  • Instagram Business Account with Messaging API access
  • Facebook App with Instagram Basic Display API
  • Webhook URL (for receiving events)

🚀 Installation

Method 1: Community Nodes (Recommended)

  1. Go to Settings > Community Nodes in n8n
  2. Click Install a community node
  3. Enter: n8n-nodes-instagram-token
  4. Click Install

Method 2: Manual Installation

npm install n8n-nodes-instagram-token

⚡ Quick Start

1. Configure Credentials

  1. Create Instagram Access Token API credential
  2. Enter your Access Token (long-lived recommended)
  3. Enable Auto Refresh Token (recommended)
  4. Set Refresh Threshold to 7 days

2. Create Your First Workflow

  1. Add Instagram node
  2. Select Resource: Message
  3. Select Operation: Send Text
  4. Configure your message
  5. Execute the workflow

3. Set Up Webhooks (Optional)

  1. Add Instagram Trigger node
  2. Configure webhook URL
  3. Set up event handling

📚 Documentation


🔧 Configuration

Instagram Access Token API

  • Access Token: Your Instagram access token
  • Instagram Business Account ID: Auto-discovered if not provided
  • Auto Refresh Token: Enable automatic token refresh
  • Refresh Threshold: Days before expiration (default: 7)
  • Webhook Verify Token: Optional webhook verification

What's New in 2.4.1

  • Hide/Unhide Comments - Hide or unhide comments on your posts
  • Delete Comments - Delete comments from your posts
  • Enhanced Comment Management - Complete control over comment moderation

v2.2.0 Highlights

  • Private Replies - Send private replies with plain text or quick replies directly from the message node
  • Authentication Updates - Support Authorization: Bearer header for compatible API scenarios

v2.0.1 Highlights

  • Comment Management - Reply to comments automatically
  • Access Token System - Simplified authentication
  • Enhanced Error Handling - Better debugging and logs
  • Format Support - Proper audio format validation
  • Performance Improvements - Token caching and optimization

🤝 Support


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Acknowledgments

  • Original Authors - n8n-nodes-instagram-integrations for the foundation
  • n8n Team - For the amazing workflow automation platform
  • Instagram API - For providing comprehensive messaging capabilities
  • Community - For feedback and contributions

Made with ❤️ for the n8n community