1
votes

I am wondering if it is possible to obtain an extended access token for facebook pages that do not have a facebook profile set as it's administrator. I see it is possible to create a facebook page without setting a user profile as the admin and having those pages auth with my app.

For pages that do have a facebook profile as it's administrator, I am able to extend the short lived access token when requesting the manage_pages permission. But I'm not if there is no user associated with it.

The documentation describes this process for extending page tokens.

Apps can retrieve a Page access token from Page admin users when they authenticate with the manage_pages permission. If the user access token used to retrieve this Page access token is short-lived, the Page access token will also be short-lived.

To get a longer-lived Page access token, exchange the User access token for a long-lived one, as above, and then request the Page token. The resulting Page access token will not have an expiry time at all.

Extending Access Tokens Documentation

I am wondering if it's possible to obtain extended access tokens for pages when there is no admin associated with the page.

1
What do you mean 'a page without a profile as its administrator'? that isn't possible - all pages must be owned by a user account, either a regular user account or a business account - and both work in the same way as far as the API is concernedIgy
I thought this too. But apparently not, it's possible to create a facebook page without having the page owned by a user account. If you go to Facebook without being logged in, you'll see this where you can create a page without ever associating it with a user: screenshotsunils34
That creates a business account which becomes the sole admin of the page - business accounts can use the API, grant access to manage their pages, and use the page management APIs the same way as any regular user accountIgy
Right exactly. But I can't seem to obtain an extended access token for 'Business accounts.' Do you know if this is at all possible?sunils34

1 Answers

0
votes

All pages must be owned by a user account, either a regular user account or a business account - and both work in the same way as far as the API is concerned, at least for login (business accounts don't have names, a timeline, friends, etc so are obviously not the exact same, but they log in and grant access to apps the same way)

I just tested a few minutes ago using the my app, a business account and the server side oauth flow and received a long expiry (approx 60 day) token correctly when exchanging the business account's code for an access token

I was then able go through the flow again, this time asking for manage_pages permission and was able to use the token to retrieve a non-expiring page access token for a page the account manages using the regular process (a call to /me/accounts or `/?fields=access_token)