Loading auth/oauth2/facebook_token.php +3 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,9 @@ if (isset($_GET['state'])) { } try { $accessToken = $helper->getAccessToken(); // obtaining current URL without query string $url = "https://$_SERVER[HTTP_HOST]" . strtok($_SERVER["REQUEST_URI"], '?'); $accessToken = $helper->getAccessToken($url); } catch (Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error http_response_code(500); Loading config-example.php +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ $AUTHENTICATION_METHODS = array( 'Facebook' => array( 'id' => "XXXXXX", 'secret' => "XXXXXX", 'version' => "v2.2", 'version' => "v3.0", 'callback' => $BASE_PATH . "/auth/oauth2/facebook_token.php"), 'LinkedIn' => array( 'id' => 'XXXXXX', Loading Loading
auth/oauth2/facebook_token.php +3 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,9 @@ if (isset($_GET['state'])) { } try { $accessToken = $helper->getAccessToken(); // obtaining current URL without query string $url = "https://$_SERVER[HTTP_HOST]" . strtok($_SERVER["REQUEST_URI"], '?'); $accessToken = $helper->getAccessToken($url); } catch (Facebook\Exceptions\FacebookResponseException $e) { // When Graph returns an error http_response_code(500); Loading
config-example.php +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ $AUTHENTICATION_METHODS = array( 'Facebook' => array( 'id' => "XXXXXX", 'secret' => "XXXXXX", 'version' => "v2.2", 'version' => "v3.0", 'callback' => $BASE_PATH . "/auth/oauth2/facebook_token.php"), 'LinkedIn' => array( 'id' => 'XXXXXX', Loading