See llms.txt for all machine-readable content.
This n8n template automates two critical one-time setup steps required before any Facebook automation can go live: it exchanges a short-lived User Access Token for a long-lived one (~60 days), retrieves Page Access Tokens for all connected Facebook Pages, and subscribes each Page to the webhook fields your app needs — all in a single manual run.
If you're building a Messenger chatbot or automating comment replies on Facebook Pages, run this utility workflow once as part of your initial setup.
app_id, app_secret, short-lived short_user_access_token, and field_to_add (the webhook subscription fields) in one place — no other node needs editing.App ID and App Secret from Meta for Developers.pages_manage_metadata and pages_show_list permissions.Needed Value: Enter all four config fields. Set field_to_add based on your use case (e.g., messages,messaging_postbacks for Messenger chatbots, or add feed for comment automation).pages_manage_metadata permission approved.Needed Value node.field_to_add — common values: messages, messaging_postbacks, messaging_optins, message_deliveries, feed.Related workflows by the same author:
Created by: Nguyễn Thiệu Toàn (Jay Nguyen) - n8n Verified Creator
Email: [email protected]
Website: nguyenthieutoan.com
Company: GenStaff (CEO/Founder) (genstaff.net)
Socials (Facebook / X / LinkedIn): @nguyenthieutoan
More templates: n8n.io/creators/nguyenthieutoan