Skip to main content

Automated Facebook group scraper: posts, comments, and sub-comments to Supabase

Workflow preview

Workflow preview
100%
Automated Facebook group scraper: posts, comments, and sub-comments to Supabase preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template demonstrates how to automate the scraping of posts, comments, and sub comments from a Facebook Group and store the data in a Supabase database. Use cases are many: Gather user eng...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@apify/n8n-nodes-apify.apify, n8n-nodes-base.supabase, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.splitout, n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Muhammad Abrar.

Original n8n.io source

1.1 Workflow description

Title
Automated Facebook group scraper: posts, comments, and sub-comments to Supabase
Workflow name
Automated Facebook group scraper: posts, comments, and sub-comments to Supabase

This n8n template demonstrates how to automate the scraping of posts, comments, and sub-comments from a Facebook Group and store the data in a Supabase database.

Use cases are many: Gather user engagement data for analysis, archive posts and comments for research, or monitor community sentiment by collecting feedback across discussions!

Good to know

At the time of writing, this workflow requires the apify api for scraping and Supabase credentials for database storage.

How it works

  • The Facebook Group posts are retrieved using an Apify scraper node.
  • For each post, comments and sub-comments are collected recursively to capture all levels of engagement.
  • The data is then structured and stored in Supabase, creating records for posts, comments, and sub-comments.
  • This workflow includes the option to adjust how often it scrapes and which group to target, making it easy to automate collection on a schedule.

How to use

  • The workflow is triggered manually in the example, but you can replace this with other triggers like webhooks or scheduled workflows, depending on your needs.
  • This workflow is capturing data points, such as user interactions or media attached to posts.

Requirements

  • Apify account API
  • Supabase account for data storage

Customizing this workflow

This template is ideal for gathering and analyzing community feedback, tracking discussions over time, or archiving group content for future use.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Run an Actor

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 2 - Get dataset items

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 3 - Get dataset items1

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 4 - Add A Post

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 5 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Create a row

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 7 - Add A Comment

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 8 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - ScrapeComments

Type / Role
@apify/n8n-nodes-apify.apify - apify
Config choices
Version 1

Block 10 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 11 - Edit Fields1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

3. Summary Table

Workflow Automated Facebook group scraper: posts, comments, and sub-comments to Supabase
Complexity advanced
Nodes 15
Categories Market Research
Author Muhammad Abrar
Published 30 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10370/10370.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated Facebook group scraper: posts, comments, and sub-comments to Supabase do?

This n8n template demonstrates how to automate the scraping of posts, comments, and sub comments from a Facebook Group and store the data in a Supabase database. Use cases are many: Gather user eng...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.