Track Facebook page engagement with Facebook Graph API and Google Sheets

Go to Workflow
0 views
Built by Dr. Firas Dr. Firas
Created on August 07, 2026

Description

Quick overview
This workflow runs manually or daily to pull your Facebook Page’s most recent posts, calculate per-post likes, comments, and shares via the Facebook Graph API, and append or update each post’s engagement metrics in a Google Sheets spreadsheet.

How it works
Runs manually or on an optional daily schedule.
Reads configuration values (Graph API version, number of posts to check, and delay between posts) and fetches Facebook Page details.
Retrieves the Page feed and splits the response into individual posts.
For each post, fetches comment totals, reaction totals, and share counts from the Facebook Graph API.
Combines the three engagement metrics into a single record per post (including the post ID and message).
Appends or updates the corresponding row in Google Sheets and waits briefly before processing the next post to reduce rate-limit risk.

Setup
Add a Facebook Graph API credential in n8n with a Page access token that can read the Page feed and engagement.
Add a Google Sheets OAuth2 credential.
In the Google Sheets step, select the target spreadsheet and sheet tab, and ensure it has columns for post ID, post text, likes, comments, and shares.
Update the Configuration values (max posts, Graph API version, and pause duration) to match your needs and API limits.
If using scheduled tracking, enable the schedule trigger and set the run time for your timezone.

Additional info
Track Facebook page engagement to Google Sheets
📥 Open full documentation on Notion

Need help customizing?
Contact me for consulting and support : Linkedin

MY NEW YOUTUBE CHANNEL
👉 Subscribe to my new YouTube channel. Here I'll share videos and Shorts with practical tutorials and FREE templates for n8n.

Nodes Used (2)

Facebook Graph API
n8n-nodes-base.facebookGraphApi
Google Sheets
n8n-nodes-base.googleSheets