Get long lived Facebook user or page access token
Ready for 3.0What this workflow does
This workflow has 4 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls graph.facebook.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Parameter (Edit Fields (Set)): sets 4 fields: client_id, client_secret, user_access_token…
- Get Long Lived FB User Token (HTTP Request): calls graph.facebook.com
- Get Long Lived FB Page Token (HTTP Request): calls an HTTP API
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 (3)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set
From the author
Facebook access tokens expire quickly, requiring regular updates for continued API access. This workflow simplifies the process of exchanging short-lived tokens for long-lived ones, saving time and reducing manual effort. What this workflow does - Exchanges a…