
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@pakoor/n8n-nodes-instagram
Advanced tools
n8n community node for Instagram Messaging API integration. This package provides OAuth2/Access Token authentication, messaging capabilities, content publishing, comment management, and webhook-based event handling through the Instagram Graph API.
n8n-nodes-instagram and confirmnpm install n8n-nodes-instagram
Or in your n8n installation directory:
cd ~/.n8n/custom
npm install n8n-nodes-instagram
instagram_basic - Basic account informationinstagram_manage_messages - Send and receive messagesinstagram_manage_comments - Manage commentsinstagram_content_publish - Publish contentpages_show_list - Access connected Facebook pagespages_read_engagement - Read page engagement data| Operation | Description |
|---|---|
| Send Text | Send a text message to a user |
| Send Image | Send an image message via URL |
| Send Audio | Send an audio message via URL |
| Send Video | Send a video message via URL |
| Send Button Template | Send interactive buttons |
| Send Generic Template | Send a carousel of cards |
| Send Quick Replies | Send quick reply options |
| Operation | Description |
|---|---|
| Get Profile | Get a user's profile by IGSID |
| Get My Profile | Get your Instagram Business Account info |
| Operation | Description |
|---|---|
| Get Comments | Get comments on a media post |
| Get Replies | Get replies to a comment |
| Reply | Post a public reply to a comment |
| Send Private Reply | Send a DM to a commenter (within 7 days) |
| Delete | Delete a comment |
| Toggle Visibility | Hide or unhide a comment |
| Operation | Description |
|---|---|
| Create Single | Create a single image/video post |
| Create Carousel | Create a carousel post (2-10 items) |
| Publish | Publish a media container |
| Operation | Description |
|---|---|
| Create | Create a story (image or video) |
| Operation | Description |
|---|---|
| Create | Create a reel (video up to 60 seconds) |
| Operation | Description |
|---|---|
| List | List your media with pagination |
| Get | Get details of a specific media |
| Get Children | Get items in a carousel post |
Receives webhook events from Instagram with dual outputs:
| Output | Events |
|---|---|
| Messaging Events | Messages, Postbacks, Opt-ins |
| Content Events | Comments, Mentions |
{
"resource": "message",
"operation": "sendText",
"recipientId": "{{$json.sender_id}}",
"text": "Hello! Thanks for reaching out."
}
{
"resource": "message",
"operation": "sendButtonTemplate",
"recipientId": "{{$json.sender_id}}",
"text": "How can I help you?",
"buttons": [
{ "type": "postback", "title": "View Products", "payload": "PRODUCTS" },
{ "type": "web_url", "title": "Visit Website", "url": "https://example.com" }
]
}
// Step 1: Create container
{
"resource": "post",
"operation": "createSingle",
"mediaType": "IMAGE",
"mediaUrl": "https://example.com/image.jpg",
"caption": "Check out our new product! #newproduct"
}
// Step 2: Publish (use container ID from step 1)
{
"resource": "post",
"operation": "publish",
"containerId": "{{$json.id}}"
}
When using the Create Carousel operation with Input Mode set to JSON / Expression, use the following array format for the Carousel Items (JSON) field. This is useful when mapping data from previous nodes.
[
{
"mediaType": "IMAGE",
"mediaUrl": "https://example.com/image1.jpg",
"userTags": "username1,username2" // Optional: Comma-separated usernames
},
{
"mediaType": "VIDEO",
"mediaUrl": "https://example.com/video1.mp4"
},
{
"mediaType": "IMAGE",
"mediaUrl": "https://example.com/image2.jpg"
}
]
Note:
IMAGE or VIDEO.Use the Instagram Trigger to receive comment events, then reply:
{
"resource": "comment",
"operation": "reply",
"commentId": "{{$json.id}}",
"message": "Thanks for your comment! 🙏"
}
| Field | Limit |
|---|---|
| Text message | 1000 characters |
| Button count | 3 maximum |
| Button title | 20 characters |
| Quick replies | 13 maximum |
| Carousel items | 2-10 items |
| User tags | 20 maximum |
| Tag position (x, y) | 0-1 range |
| Reel duration | 60 seconds |
To use the Instagram Trigger node:
instagram webhooksmessages, messaging_postbacks, comments, mentionsThe node provides detailed error information:
| Error Code | Description | Suggestion |
|---|---|---|
| 4 | Rate limit exceeded | Wait and retry |
| 190 | Invalid access token | Reconnect credentials |
| 100 | Invalid parameter | Check input values |
| 10 | Permission denied | Check app permissions |
Enable Continue On Fail in node settings for graceful error handling in workflows.
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Lint
npm run lint
MIT
FAQs
n8n community node for Instagram Messaging API integration
We found that @pakoor/n8n-nodes-instagram demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.