title: FacebookSDKException: Session not active, could not store state
body: <p>I don't understand why I'm getting this exceptions:</p>
  
  <pre><code>Session not active, could not store state.
  </code></pre>
  
  <p>The code is:</p>
  
  <pre><code>&lt;?php
  
  require 'vendor/autoload.php';
  
  use Facebook\FacebookSession;
  use Facebook\FacebookRedirectLoginHelper;
  
  FacebookSession::setDefaultApplication('foo', 'baz');
  
  $helper = new FacebookRedirectLoginHelper('bar');
  $loginUrl = $helper-&gt;getLoginUrl();
  
  ?&gt;
  </code></pre>
  
  <p>Please help.</p>