title: RuntimeException - Session store not set on request - Laravel Socialite - Facebook
body: <p>I'm using <code>Laravel 5.7</code> and <code>Laravel/Socialite 3.1</code>.</p>
  
  <p>I want to login using a <code>Facebook</code> app I just configured for this project.</p>
  
  <p>These are the main files I have configured for this:</p>
  
  <p><strong>/.env</strong></p>
  
  <pre><code>...
  FACEBOOK_CLIENT_ID=***
  FACEBOOK_CLIENT_SECRET=***
  FACEBOOK_CALLBACK_URL=http://localhost:8000/auth/facebook/callback
  </code></pre>
  
  <p><strong>/config/services.php</strong></p>
  
  <pre><code>&lt;?php
  
  return [
      ...
      'facebook' =&gt; [
          'client_id' =&gt; env('FACEBOOK_CLIENT_ID'),
          'client_secret' =&gt; env('FACEBOOK_CLIENT_SECRET'),
          'redirect' =&gt; env('FACEBOOK_CALLBACK_URL'),
  
      ],
  ];
  </code></pre>
  
  <p><strong>/routes/api.php</strong></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Http\Request;
  
  ...
  
  Route::get('auth/facebook', 'SocialiteController@redirectToProviderFacebook');
  Route::get('auth/facebook/callback', 'SocialiteController@handleProviderCallbackFacebook');
  </code></pre>
  
  <p><strong>/app/Http/Controllers/SocialiteController.php</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Socialite;
  
  class SocialiteController extends Controller
  {
      public function redirectToProviderFacebook()
      {
          return Socialite::driver('facebook')-&gt;redirect();
      }
  
      public function handleProviderCallbackFacebook()
      {
          $user = Socialite::driver('facebook')-&gt;user();
          print_r($user-&gt;token);
      }
  }
  </code></pre>
  
  <p>My problem is that for some reason I get the error:</p>
  
  <pre><code>RuntimeException
  Session store not set on request.
  </code></pre>
  
  <p>as you can see on the following image:</p>
  
  <p><a href="https://i.stack.imgur.com/N13FD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N13FD.png" alt="enter image description here"></a></p>
  
  <p>I don't want to use sessions on this project at all. I just want to get the <code>token</code> from <code>Facebook</code> on the callback inside: <code>function handleProviderCallbackFacebook()</code>.</p>
  
  <p>Any idea on how to solve this issue?</p>
  
  <p>Thanks!</p>