Templates / Get long lived Facebook user or page access token

Get long lived Facebook user or page access token

Ready for 3.0

by Sira Ekabut ✓ · 3,927 views · created 2024-11-09 · Engineering

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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”.

  1. Set Parameter (Edit Fields (Set)): sets 4 fields: client_id, client_secret, user_access_token…
  2. Get Long Lived FB User Token (HTTP Request): calls graph.facebook.com
  3. 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)

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…

Excerpt from Sira Ekabut's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.