skip to Main Content

I’m trying to retrieve an access token for an authentication code. I’m using the following format:

GET https://graph.accountkit.com/v1.0/access_token?grant_type=authorization_code&code=AUTH_CODE&access_token=AA|APP_ID|APP_SECRET

where AUTH_CODE, APP_ID, and APP_SECRET are their respective values. Here is the python I use to assemble this URL:

url = 'https://graph.accountkit.com/v1.0/access_token?grant_type=authorization_code&code=' + authcode + '&access_token=AA|' + facebook_app_id + '|' + facebook_app_secret

But I keep getting the following error:


{
error: {
message: "Error verifying the token in the 'access_token'",
type: "OAuthException",
code: 190,
fbtrace_id: "GNhScPPp22t"
}
}

I tried googling the fbtrace_id but literally nothing came up. And I don’t understand why it’s saying it can’t verify the token in “access_token”, I do exactly what their documentation says to do.

Anyone have an idea of where my issue may be?

3

Answers


  1. Chosen as BEST ANSWER

    They use a different app secret for AccountKit versus the rest of Facebook.


  2. The error is Because of the Facebook App Configuration.

    I followed this tutorial regarding accountkit setup

    It shows the solution as below

    enter image description here

    Alternatively create an Test app under your Main app and you can play with Configuration (It wont affect production)

    Login or Signup to reply.
  3. Use following app secret at server:

    [ PRODUCTS -> Account Kit -> Settings -> Account Kit App Secret ]

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search