-
Notifications
You must be signed in to change notification settings - Fork 2k
Enforce HTTPS #1049
Comments
Login via facebook suddenly stopped working on our website yesterday night. Had to disable "enforce https" in the setting panel as a temporary work around. this is the error you get: |
Same problem, how can i fix it? |
@BloodElf if you can't disable "enforce_https" in the app setting panel, modify the code:
to
in this class: FacebookRedirectLoginHelper at line 226. It should workaround the issue, even tho is fb that should NOT send that param at all |
@gianpaolodn It works! Thank you very much! |
confirm, same issue. Solved the same way, adding 'enforce_https' |
@gianpaolodn thanks! Can you open a PR with the fix? |
@gianpaolodn in fact, there is already a PR for that: #1054 |
I'm using these code:
$helper = $this->facebook->getRedirectLoginHelper();
$accessToken = $helper->getAccessToken();
In
getAccessToken
function has$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['code', 'state']);
If my Facebook App has turn on "Enforce HTTPS" mode, this
$redirectUrl
will be something likehttps://donmain.com/facebook/callback?enforce_https=1
This will cause Facebook return an error about "domain" or "Valid OAuth Redirect URIs".
Shouldn't remove it?
The text was updated successfully, but these errors were encountered: