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