PHP facebook SDK 4.0 login error
问题 I was looking for docs on official page but there is no anything helpful, so i build this code and it don't work. FacebookSession::setDefaultApplication('app-id', 'app-secret'); $helper = new \Facebook\FacebookRedirectLoginHelper('http://my-return-url'); if (isset($_SESSION['token'])) { $session = new FacebookSession($_SESSION['token']); if (!$session->validate()) { $session = null; } } else { try { $session = $helper->getSessionFromRedirect(); } catch(FacebookRequestException $ex) { die(