Automate Facebook page token renewal with data tables storage
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs on a schedule (every 2 months). It uses only n8n's built-in nodes. It also calls graph.facebook.com over HTTP.
How it runs
Trigger: On a schedule (every 2 months).
- Set Parameter (Edit Fields (Set)): sets 5 fields: client_id, client_secret, user_access_token…
- Get long lived facebook user token (HTTP Request): calls graph.facebook.com
- Get list facebook page (HTTP Request): calls graph.facebook.com
- Get long lived facebook page token (HTTP Request): calls an HTTP API
- Split Out: splits a list into separate items
- Edit Fields (Edit Fields (Set)): sets 3 fields: access_token, name, id
- Upsert row(s) (Data table): create or update
HTTP calls to: graph.facebook.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - Data table
n8n-nodes-base.dataTable - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest
From the author
Get Long-Lived Facebook Page Access Token with Data Table > Set up n8n self-hosted via Tino.vn VPS — use code VPSN8N for up to 39% off (affiliate link). Good to Know This workflow automatically solves the common issue of Facebook Page Access Tokens…