Templates / Reply to Instagram and Facebook comments via Meta webhooks and DMs

Reply to Instagram and Facebook comments via Meta webhooks and DMs

Ready for 3.0

by Pawel Jurczyk ✓ · 889 views · created 2026-06-12 · Social Media

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs when an HTTP GET request hits its webhook URL. It uses only n8n's built-in nodes.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Configuration (EDIT ME) (Edit Fields (Set)): sets 6 fields: access_token, verify_token, keyword…
  2. Meta Verification? (If): checks a condition and branches into true / false
  3. Respond hub.challenge (Respond to Webhook): sends the response back to the webhook caller
  4. Respond 200 OK (Respond to Webhook): sends the response back to the webhook caller
  5. Extract Comment (Code): runs custom JavaScript code
  6. Send Public Reply? (If): checks a condition and branches into true / false
  7. Send DM? (If): checks a condition and branches into true / false
  8. Reply to Comment (HTTP Request): calls an HTTP API (POST)
  9. Send DM (private reply) (HTTP Request): calls an HTTP API (POST)

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick Overview This workflow receives Meta webhooks for Instagram and Facebook Page comments, verifies the webhook subscription handshake, and then posts an optional public reply and/or sends a private DM to the commenter via the Meta Graph API. How it works…

Excerpt from Pawel Jurczyk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.