facebook-oauth-app
Facebook (Pages) OAuth2 App Registration
Get a working Facebook OAuth2 client — a Meta app with the Pages use case, redirect URIs, pages_* permissions and
an App ID and App Secret — for a platform that connects many customers' Facebook Pages on their behalf.
The registration mechanics are not here; they are the same for every Meta product and live in the base skill. Three things are specific to Facebook Pages, and each one produces a failure that looks like something else.
First, the token you finish OAuth with is not the token most calls need. Facebook Login hands you a user
access token. Meta's own summary: "Most endpoints require Page access tokens." A user token has to be exchanged,
per Page, for one of those — the documented route is /{user-id}/accounts, and reading the access_token field on
a Page node works too — and a Page token minted from a short-lived user token is itself short-lived. A connector
that stores the OAuth token and calls Page endpoints with it works in the Graph API Explorer and fails in
production.