This workflow automatically solves the common issue of Facebook Page Access Tokens expiring. It proactively renews your Page Tokens and stores them in an n8n Data Table.
It runs every two months, ensuring your Page Access Tokens remain valid. This guarantees seamless and uninterrupted automation for all your Facebook API integrations.
The workflow performs the following steps to keep your tokens up to date:
client_id, client_secret, a short-lived user_access_token, and the app_scoped_user_id (all obtained from Facebook Developer Tools).access_token, name, and id, then performs an Upsert operation to update or insert rows in your n8n Data Table, ensuring the stored tokens are always current.Import: Import this JSON file into your n8n instance.
Configure Credentials: Open the Set Parameters node and replace the placeholder values for client_id, client_secret, user_access_token, and app_scoped_user_id with your actual credentials from Facebook.
Configure Data Table: Open the Upsert row(s) node.
token, name_page, id_page) matches your table schema.Activate: Save and activate the workflow. It will now run automatically based on your configured schedule.
n8n instance (Self-hosted recommended):
Facebook App: A Facebook Developer App to generate the following credentials:
client_id and client_secretuser_access_tokenapp_scoped_user_idData Table: An n8n Data Table configured with columns to store token information (e.g., token, name_page, id_page).