Skip to content

Commit

Permalink
fix: get state with loadState()
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanco committed Mar 2, 2015
1 parent 11899c9 commit 06a74cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Facebook/FacebookRedirectLoginHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ public function getLogoutUrl(FacebookSession $session, $next)
*/
public function getSessionFromRedirect()
{
$this->loadState();
if ($this->isValidRedirect()) {
$params = array(
'client_id' => FacebookSession::_getTargetAppId($this->appId),
Expand Down Expand Up @@ -203,7 +202,7 @@ public function getSessionFromRedirect()
*/
protected function isValidRedirect()
{
$savedState = $this->state;
$savedState = $this->loadState();
if (!$this->getCode() || !isset($_GET['state'])) {
return false;
}
Expand Down

0 comments on commit 06a74cf

Please sign in to comment.