Facebook login: Please make sure your redirect_uri is identical to the one you used in the OAuth dialog

✔ Recommended Answer

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.

Method #2

This error message typically occurs when there is a mismatch between the redirect_uri parameter used in the OAuth dialog and the one specified in the code that handles the callback from Facebook.

To resolve this issue, you should ensure that the redirect_uri parameter used in the OAuth dialog exactly matches the one specified in the code that handles the callback from Facebook. This includes the protocol (http or https), the domain, and the path.

You should also make sure that the redirect_uri is properly URL encoded to avoid any issues with special characters. Double-check the code to make sure that the redirect_uri parameter is being properly passed to Facebook.

If you are still experiencing issues after making these changes, you may want to try creating a new Facebook app and setting up the OAuth flow again from scratch. This can sometimes help to resolve issues related to misconfiguration or outdated settings.

Comments

Most Popular

PhpStorm, return value is expected to be 'A', 'object' returned

Remove Unicode Zero Width Space PHP

Laravel file upload returns forbidden 403, file permission is 700 not 755