summaryrefslogtreecommitdiff
path: root/lib/facebook-graph-sdk/src/Facebook/Helpers
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-01 17:11:00 +0100
committeremkael <emkael@tlen.pl>2019-01-01 17:11:00 +0100
commit36f25b4e845b9a53dd6f11402de5bfa61078fdf9 (patch)
tree9cf8ee811f2e6c6fb5f90e6001d45d347f969b01 /lib/facebook-graph-sdk/src/Facebook/Helpers
parenteab8a101e7a3fcbb41e01a574985e06c5a3775de (diff)
Facebook API updated
Diffstat (limited to 'lib/facebook-graph-sdk/src/Facebook/Helpers')
-rw-r--r--lib/facebook-graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facebook-graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php b/lib/facebook-graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php
index 3240ba8..6003a20 100644
--- a/lib/facebook-graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php
+++ b/lib/facebook-graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php
@@ -222,8 +222,8 @@ class FacebookRedirectLoginHelper
$this->resetCsrf();
$redirectUrl = $redirectUrl ?: $this->urlDetectionHandler->getCurrentUrl();
- // At minimum we need to remove the 'state' and 'code' params
- $redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['code', 'state']);
+ // At minimum we need to remove the 'code', 'enforce_https' and 'state' params
+ $redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['code', 'enforce_https', 'state']);
return $this->oAuth2Client->getAccessTokenFromCode($code, $redirectUrl);
}