Latenode

Automate Facebook group data collection to Supabase

This template stores Facebook group posts in Supabase. A webhook receives the group id and how many posts to pull.

JavaScript calls the Facebook Graph API for a group that token can read, shapes posts and comments, then Supabase writes the rows. Connect Supabase. Put the Facebook access token in that JavaScript node.

Updated Sep 16, 2026Est. run: 25sEst. cost: $0.0016
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Pulls Facebook group posts on each webhook run
  • Calls Graph from JavaScript with the token in that node
  • Stores posts and comments in Supabase
  • Keeps the Supabase key on the Supabase connection

How it works

1
Trigger

Receive the group request

The scenario starts when a webhook POST includes the Facebook group id and post count.

2
Logic

Fetch posts and comments

JavaScript calls the Facebook Graph API for that group and shapes posts, comments, and replies. Put the access token in that JavaScript node.

3
Action

Store rows in Supabase

Supabase writes each post and comment to the tables you map.

Setup guide

1

Add a webhook trigger

Add a webhook trigger and copy its URL. POST the Facebook group id and the number of posts you want on each run.

2

Put the Facebook token in JavaScript

Add a JavaScript node that calls the Facebook Graph API for a group that token can read. Put the access token in that JavaScript node. Request posts, then comments on each post.

3

Connect Supabase

Add a Supabase connection. Put the project URL and service key on that connection. Map posts, comments, and replies to the tables you created. Send a test POST and confirm the rows appear.

Requirements

A Facebook access token that can read the group, stored in the JavaScript node
A Supabase project with tables for posts and comments, URL and service key on the Supabase connection
The Facebook group id you are allowed to read

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.