2

I am working on a application where i am asking for appid, secret and page access token from user. I do not want to ask Page Id. so how can i get Page Id from page_access_token.?

6
  • Debug the token, that should get you the page id. Commented Mar 17, 2017 at 9:14
  • @CBroe hi thanks for direction, However i am getting this...You must provide an app access token or a user access token. I think may be because i am providing page_access_token Commented Mar 17, 2017 at 9:21
  • You need to provide an app or user access token, and it has to be from the app the page token belongs to as well I think. Commented Mar 17, 2017 at 9:23
  • @CBroe still cant do that...any other way?. Commented Mar 17, 2017 at 11:51
  • 2
    Make a simple /me request using the page token. Commented Mar 17, 2017 at 11:59

1 Answer 1

3

I do not want to ask Page Id. so how can i get Page Id from page_access_token?

You can either debug the access token via an API call - but that would require that the token was issued for your app.

Or you simply make an API call for /me using the page access token - that will return the page id.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.