Templates / Facebook token retrieval & management

Facebook token retrieval & management

Ready for 3.0

by L Hùng · 1,576 views · created 2025-02-20 · Social Media

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 8 nodes and runs when an HTTP GET request hits its webhook URL. It uses only n8n's built-in nodes. It also calls graph.facebook.com over HTTP.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Config (Edit Fields (Set)): sets 3 fields: fb_redirect_uri, app_id, app_secret
  2. If: checks a condition and branches into true / false
  3. Short-Lived Token (HTTP Request): calls graph.facebook.com
  4. Redirect URL (Code): runs custom JavaScript code
  5. Long-Lived Token (HTTP Request): calls graph.facebook.com
  6. Redirect (Respond to Webhook): sends the response back to the webhook caller
  7. Token (Respond to Webhook): sends the response back to the webhook caller

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 (6)

From the author

Pre-Conditions 1. A Facebook Developer account with an active app. 2. Basic understanding of n8n workflows. 3. Access to a database (optional, for storing tokens). Setup 1. Webhook Activation: - Configure the Webhook to receive user requests and process input…

Excerpt from L Hùng'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.