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-10-19.

Nodes used (3)

What it does

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 short-lived Facebook User Access Token for a long-lived token using the Facebook Graph API. - Optionally retrieves a long-lived Page Access Token associated with the user. - Outputs both the user and page tokens for further use in automation or integrations. Setup Prerequisites: - A valid Facebook App ID and App Secret. - A short-lived User Access Token from the Facebook platform. - (Optional) The App-Scoped User ID for fetching associated page tokens. Workflow Configuration: - Replace placeholder values in the "Set Parameter" node with your Facebook credentials and token. - Run the workflow manually to generate long-lived tokens. Documentation Reference: Follow the official Facebook guide for more details: https://developers.facebook.com/docs/facebook-login/guides/access-tokens/get-long-lived/

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.