As of today an application that i have keeps getting the following error while using Facebook Login Api.
Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog
request
Last successfull attempt was yesterday night 2018-08-29 23:40:00 and since then all loging attempts end up to redirect_url mismatch.
My call back url is like
also tried alternative
but still no success.
No change was made to the application and nothing seems to justify the exception. Tried also with latest sdk librady, but i still get the same error.
Any help would be much appreciated.
4
Answers
Facebook seems to have "short of" break its own code. By enabling enfore https, the Validate OAuth url no longer validates.
I have added the following param on my redirect url to bypass the issue
i am facing same issue today here is solution please check below link :.
Facebook PHP SDK – Login helper returns error
I’m currently working on Graph api version v2.2
If you open Enforce HTTPS on in Facebook Login settings.
Go to you facebook-php-sdk and inside that
change $redirectUrl:
To
It is a bug from Facebook that started today.
Go to Facebook Developers.
Choose your app.
Go to Facebook Login > Settings
Then uncheck ENFORCE HTTPS
It worked for me 🙂
Log into developers.facebook.com and make sure you’re using the redirect_uri set on your app.
Failing that, as absurd as this sounds, verify you’re using the correct app_secret.
Facebook will give you this instead of just saying “invalid secret” in the response