OAuth login error "Warning URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings"


Hi. When trying to login using Facebook in ASP.NET MVC application, I am getting this error as shown below

Warning 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.

how I can resolve this problem? Here is the screenshot of my faceboook authorization settings.

I have set a redirect urls in my app facebook but i'm facing this error . Thanks.


Asked by:- LuneAgile
0
: 60 At:- 8/6/2018 1:32:04 AM
MVC Oauth facebook asp.net






2 Answers
profileImage Answered by:- vikas_jk

You need to check redirect URI mentioned in your application and facebook must be same. When you get this message, copy the URL from the browser window, and inspect it. The URL has the redirect URL mentioned within it.

Copy the exact redirect URL as mentioned, and put it under Valid OAuth Redirect URLs, it will solve the problem.

OR Set the redirect URI as

redierct_url = http://127.0.0.1:8080/accounts/facebook/login/callback/

I got that from my browser after clicking the Facebook button you browser will be redirected to a link for integrating with Facebook API, so where you will get that redirect. For my case the link was this from where I got the redirect_url.

https://www.facebook.com/dialog/oauth?client_id=...&scope=&response_type=code&state=...&redirect_uri=http://127.0.0.1:8080/accounts/facebook/login/callback/

Use something like this.

1
At:- 8/6/2018 7:28:46 AM


profileImage Answered by:- LuneAgile

 

Thanks Vikas just now I have understand your answar really thanks.

0
At:- 8/16/2018 11:08:39 AM





Login/Register to answer
Or
Register directly by posting answer/details

Full Name *

Email *




By posting your answer you agree on privacy policy & terms of use