Welcome Guest, Not a member yet? Register   Sign In
LogIn with Facebook
#1

I am trying to get LogIn with Facebook to work but it isn't getting an Access Token.

I have pinned it down to this function in FacebookRedirectLoginHelper.php



 
Code:
public function getAccessToken($redirectUrl = null)
    {
     
        if (!$code = $this->getCode()) {
            return null;
        }


        $this->validateCsrf();

        $redirectUrl = $redirectUrl ?: $this->urlDetectionHandler->getCurrentUrl();
        // At minimum we need to remove the state param
        $redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['state']);

        return $this->oAuth2Client->getAccessTokenFromCode($code, $redirectUrl);
    }

It is  returning from
Code:
if (!$code = $this->getCode()) {
   return null;
}

with null

The code has me confused - where should getCode get the access code from to start with?


Thanks
Reply


Messages In This Thread
LogIn with Facebook - by Knutsford - 07-28-2017, 04:49 AM
RE: LogIn with Facebook - by InsiteFX - 07-28-2017, 09:17 AM
RE: LogIn with Facebook - by Knutsford - 07-28-2017, 09:39 AM
RE: LogIn with Facebook - by Knutsford - 07-28-2017, 01:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB