title: OAuth exception error from Facebook access token
body: <p>I am trying to build a REST API that will login to Facebook using socialite with lumen, a micro-service of Laravel. I have set up my Facebook app and configured the client_id, secret and access url accordingly.</p>
  <p>The work flow is:
  Here is the work flow</p>
  <p>1.get user details from socialite</p>
  <p>2.check the user existence with email ,if its exists execute auth::login, otherwise create a new record in users table and redirect to profile.</p>
  <p>The program now redirects me to Facebook, however once the user presses the login button, it returns the following error:</p>
  <pre><code>Client error: `POST https://graph.facebook.com/v3.3/oauth/access_token` resulted in a `400 Bad Request` response:
  {&quot;error&quot;:{&quot;message&quot;:&quot;This authorization code has been used.&quot;,&quot;type&quot;:&quot;OAuthException&quot;,&quot;code&quot;:100,&quot;error_subcode&quot;:*****,&quot;f (truncated...)
  </code></pre>
  <p>I am confused as it has not been long since I generated the token and no user login/ permissions have changed, so the token should not be expired. Do I need to store the access token in a database in order to grant the user permission or is there some way to store it in a user's browser session?(I already have a database configured on forge for user name and email)</p>