π Track Facebook page engagement with Facebook Graph API and Google Sheets
β‘ 65 views Β· π Market Research & Insights
π‘ Pro Tip β If youβve run into Facebookβs Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly β no app review needed.
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
Google Sheets, Facebook Graph API, Schedule Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File
