Account Kit: Error verifying the token in the 'access_token'
<p>I'm trying to retrieve an access token for an authentication code. I'm using the following format:</p>

<p>GET <a href="https://graph.accountkit.com/v1.0/access_token?grant_type=authorization_code&amp;code=AUTH_CODE&amp;access_token=AA|APP_ID|APP_SECRET" rel="nofollow">https://graph.accountkit.com/v1.0/access_token?grant_type=authorization_code&amp;code=AUTH_CODE&amp;access_token=AA|APP_ID|APP_SECRET</a></p>

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

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

<p>But I keep getting the following error:</p>

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

<p>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 <em>exactly</em> what their documentation says to do.</p>

<p>Anyone have an idea of where my issue may be?</p>

<p>The error is Because of the Facebook App Configuration.</p>

<p>I followed this tutorial regarding <a href="http://mycodde.blogspot.com/2016/10/facebook-accountkit-login-using-mobile.html" rel="nofollow">accountkit setup</a></p>

<p>It shows the solution as below</p>

<p><a href="https://i.stack.imgur.com/W9lPK.png" rel="nofollow"><img src="https://i.stack.imgur.com/W9lPK.png" alt="enter image description here"></a></p>

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

python facebook api http facebook-graph-api