Connecting Facebook with a token
No domain of your own, and no redirect address to register. Also done once.
When to use this route
- Your machine has no domain of its own, or you would rather not set one up.
- The Connect Facebook flow is blocked by Meta over a domain, even after registering everything.
- You want a token that never expires, so there is no reconnection in sixty days.
You still need a Meta app for this route — it is what the token belongs to. But you do not need to register App Domains or Valid OAuth Redirect URIs on it.
Getting a token
-
Open the Graph API Explorer
Go to developers.facebook.com/tools/explorer and choose your app in the Meta App box at the top right. -
Tick all three permissions
Under Permissions, tickpages_show_list,pages_read_engagementandpages_manage_posts. -
Press Generate Access Token
Sign in, choose a Page, and agree. The token box fills with a very long string. -
Copy that string
Copy the whole token. One missing character breaks it, and nothing says a character is missing.
Pasting it into the app
-
Open the Facebook screen
In the app, the Bán hàng (Selling) group, then the Facebook screen. -
Open the section for this route
Open "Nếu đăng nhập không tự quay về" — the same place the address goes. -
Paste into the token box
Paste the token into "Token để dán" and press Kết nối bằng token này ("connect with this token"). -
Tick the Pages
The Page list appears. Tick the ones you want to post to.
The Page list appears after pressing Kết nối bằng token này. The app exchanges the user token for a 60-day one and reads the Page list — no
Valid OAuth Redirect URIs, no App Domains.Making the token never expire
The token above is a user token, good for about 60 days. To get one that does not expire, take a Page token — each Page has its own, and it dies only if you change your Facebook password or revoke the app.
-
Extend the user token
Paste the token into developers.facebook.com/tools/debug/accesstoken and press Extend Access Token. That gives you a long-lived one, about 60 days. -
Change the path to me/accounts
In the Graph API Explorer, change the path tome/accountsand submit. The result lists your Pages, and each one carries its ownaccess_token.me/accounts -
Copy the Page token
That is the Page token. Copy it and paste it into the app exactly as before. -
Check it in the Debugger
Paste the Page token into the Access Token Debugger. The Expires line has to read Never.
A Page token that does not expire means the connection is made once and not revisited — no coming back in sixty days.
Six messages worth recognising
| The message | What it means | The fix |
|---|---|---|
| *The domain of this URL isn't included in the app's domains* | App Domains is missing, malformed, or was never saved | Set autoreelvn.com in App Settings → Basic, press Enter to make the chip, Save, then F5 to check |
| *Invalid Scopes: pages_show_list, …* | The three permissions were never added to the use case | See step 3 of the Meta app page |
| The app says the address is not a Facebook login | What was pasted has no ?code=… — the copy was short | Copy the whole address out of the browser's address bar |
| The app says the session does not match or has expired | More than 10 minutes passed, or the link is from an earlier attempt | Press Connect Facebook again and finish in one go |
| *Token đã hết hạn* (token expired) | A user token lasts about 60 days | Press Connect Facebook again, or take a Page token above |
| Live, and Connect is still blocked over the domain | The redirect URI or App Domains still does not match | Use the token route — it needs no domain at all |
Checking, and disconnecting
The Facebook screen has a Kiểm tra button — it asks Facebook directly whether the connection is alive, rather than reading back what was stored. Ngắt kết nối erases the stored connection; the next time you have to connect from the beginning.