Facebook login: Please make sure your redirect_uri is identical to the one you used in the OAuth dialog
You can set redirect URI in Go to https://developers.facebook.com/apps Select your app.
Under Products > Facebook Login > Settings
- Enable Embedded Browser OAuth Login
- Set Valid OAuth Redirect URIs
You can Validate Redirect URI with Redirect URI Validator.
You can only use https URIs. Also set App Domain in Settings > Basic > App Domains
Try /
at the end of redirect URI
In my case I was using https://localhost
everywhere but somehow when getting access token specifying https://localhost/
worked.
I believed you have used different redirect_uri
in your facebook app settings and Oauth API code. thats why you got this error.
For facebook login you must set same redirect_uri into both place.
As absurd as it sounds, verify you're using the correct app_secret.
Facebook will give you this instead of just saying "invalid secret" in the response