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.
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.
Use something like this.
Thanks Vikas just now I have understand your answar really thanks.
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly