⚡ Only 300 spots remaining • Closes in 2d 14h 32m

Back to Workflow Library
Social Media

Facebook Comment Auto-Moderator

Keep your community clean and professional. This workflow listens for new comments on your Facebook Page posts. It checks the comment text against a list of banned words. If a match is found, the workflow instantly hides the comment via the Graph API to prevent spam or abuse.

#Facebook
#Moderation
#Spam Control
#Social Media
#Community Management

Automation Logic

n8n JSON Blueprint

This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.

This is an exclusive blueprint. Copy the JSON below to use it.

QUICK DEPLOY

  • 1
    Download the .json file
  • 2
    Open n8n & click "Import"
  • 3
    Configure your API keys

PRO TIP

Always test your workflow in a development environment before pushing to production.

JSON BLUEPRINT

n8n-workflow.json
{
  "nodes": [
    {
      "parameters": {
        "pageId": "YOUR_PAGE_ID"
      },
      "name": "FB Comment Trigger",
      "type": "n8n-nodes-base.facebookPageTrigger",
      "typeVersion": 1,
      "position": [250, 300]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json[\"message\"]}}",
              "operation": "contains",
              "value2": "scam"
            }
          ]
        }
      },
      "name": "Is Spam?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [450, 300]
    },
    {
      "parameters": {
        "resource": "comment",
        "operation": "update",
        "commentId": "={{$node[\"FB Comment Trigger\"].json[\"id\"]}}",
        "additionalFields": {
          "is_hidden": true
        }
      },
      "name": "Hide Comment",
      "type": "n8n-nodes-base.facebookPage",
      "typeVersion": 1,
      "position": [650, 250]
    }
  ],
  "connections": {
    "FB Comment Trigger": {
      "main": [[{"node": "Is Spam?", "type": "main", "index": 0}]]
    },
    "Is Spam?": {
      "main": [[{"node": "Hide Comment", "type": "main", "index": 0}]]
    }
  }
}

To use this, copy the JSON above and paste it directly onto your n8n canvas.

IMPLEMENTATION GUIDE

Required Nodes

  • Facebook Node
  • Moderation Node
  • Spam Control Node
  • Social Media Node
  • Community Management Node
  • Cron / Webhook Trigger

Core Benefits

  • 100% Automated Execution
  • Reduces Manual Data Entry
  • Infinite Scalability

Need Help Building Your Private Cloud?

Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.

user