How to Create a Never-Expiring Facebook Page Token (System User)

Create a Facebook Page access token that never expires using a Business Portfolio system user, then save it in n8n. Step-by-step with screenshots.

Auto-posting to a Facebook Page from n8n (or any other tool) needs a Page token. Normal user tokens expire within hours or two months, so here we use a Business Portfolio system user to create one that never expires. All the work happens in business.facebook.com/settings and n8n.

In short

  • Create a system user in Business Portfolio and assign it both your Page and your App.
  • Generate its token with expiration Never and the permissions pages_manage_posts, pages_read_engagement, pages_show_list.
  • Call GET /me/accounts with that token to get your Page ID and the Page token that actually posts.
  • Save the Page token in n8n as a Query Auth credential named FB Page.

Step 1: Create a system user and assign the Page and App

Create the system user

  1. business.facebook.com/settings → Users → System users → Add.
  2. Give it a name (we used N8N Admin) and the Employee role. Admin isn’t needed.
  3. Click Create system user.

Assign the Page

  1. From the system user’s details: Assign assets → Pages → your Page → Full control.
System user N8N Admin with the Lieusoft Page assigned
System user N8N Admin with the Lieusoft Page assigned

Assign the App (this is done from a different place)

  1. Accounts → Apps → your App.
  2. Assign people → pick N8N Admin → Full control (Manage app) → Assign.
  3. Go back to System users and check that it says “N8N Admin can access 2 business assets”, with your Page under Facebook Pages and your App under Apps.
The lieusoft app with N8N Admin assigned, full access
The lieusoft app with N8N Admin assigned, full access
N8N Admin with 2 business assets: the Page and the app
N8N Admin with 2 business assets: the Page and the app

Assigning only the Page isn’t enough to generate a token — the App is required too.

Step 2: Generate the system user token

  1. Users → System users → N8N Admin → Generate token.
  2. App: your App
  3. Token expiration: Never
  4. Permissions: pages_manage_posts, pages_read_engagement, pages_show_list
  5. Generate token → copy the token and keep it somewhere safe. It’s shown only once — don’t paste it anywhere public.

Step 3: Get the Page token in n8n

  1. Add a temporary HTTP Request node:
    • Method: GET
    • URL: https://graph.facebook.com/v23.0/me/accounts
    • Authentication: Generic Credential Type → Query Auth
  2. Connect to Query Auth → Name access_token, Value = the system user token → name the credential FB System User → Save.
  3. Execute step. The output shows your Page’s id (Page ID) and access_token (Page token).
  4. Create another Query Auth credential: Name access_token, Value = the Page token, named FB Page.
  5. Delete the temporary node.
Temporary HTTP Request node: GET me/accounts with Query Auth
Temporary HTTP Request node: GET me/accounts with Query Auth
Output: the Page id and access_token (token hidden)
Output: the Page id and access_token (token hidden)

Frequently asked questions

Does a system user token expire?

No. If you choose Token expiration “Never”, it keeps working until you revoke it, delete the system user or remove its access to the Page or App.

What is the difference between the system user token and the Page token?

The system user token gives access to your business assets. The Page token, which you get from /me/accounts with the system user token, is the one that publishes posts to the Page.

Which permissions are needed to post to a Facebook Page?

pages_manage_posts to publish, plus pages_read_engagement and pages_show_list so the token can find and read your Page.

Why can’t I generate a token for the system user?

The App is not assigned to it. Assigning only the Page is not enough — open Accounts → Apps → your App → Assign people and give the system user full control.

Is it safe to share the token?

No. Anyone with the token can post as your Page. Keep it only in n8n credentials, and if it leaks use Revoke tokens and generate a new one.

What’s next?

You now have the FB Page credential in n8n and your Page ID. To use them in a workflow that posts every day on its own from a Google Sheet with AI-written text, read: Auto-post to a Facebook Page with n8n: the full workflow.

Need a Website or System for Your Business?

Tell us what you need — we'll build, host and support it for you.

Book Free Consultation