Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Valid OAuth redirect URIs for Facebook app login

I'm trying to find out the correct redirect_uri for my facebook's login, but no matter what I do, it still doesn't work.

Here is the error output:

URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs.

Here is my FB's login URL

These are my FB app settings

Any ideas? Thanks!

like image 382
Dan Mikhaél Avatar asked Sep 03 '25 08:09

Dan Mikhaél


2 Answers

This has worked for me... I have added this in client OAuth settings:

Embedded Browser OAuth Login:Yes

Valid OAuth Redirect URIs: https://abc.pythonanywhere.com(or your site)/accounts/facebook/login/callback/

Note: before to add this above url in Valid OAuth Redirct URIs got to

In settings-->Advanced

Share Redirect Allow List:

add this url in Share Redirect Domain Allow list:

https://abc.pythonanywhere.com(or your site)/accounts/facebook/login/callback/

like image 98
Naresh Chary Avatar answered Sep 05 '25 01:09

Naresh Chary


You should try following for the redirect url.

Your redirect URI will typically have the format https://engage-appname.rpxnow.com/facebook/callback.

For example, if your Engage app has the name my--test-app, your redirect URI would be https://my-test-app.rpxnow.com/facebook/callback.

like image 24
Jhanvi Patel Avatar answered Sep 05 '25 01:09

Jhanvi Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!