Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't load URL: The domain of this URL isn't included in the app's domains in Facebook Login in ASP.NET MVC

After Registering my application with Facebook for using Facebook OAuth Login with ASP.NET application i got error. when i am click on Facebook button in Development Environment.

Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.

Login Screen

Login Screen

Error Displayed

Error Displayed

like image 514
Saineshwar Avatar asked Oct 20 '17 13:10

Saineshwar


People also ask

How do you fix Facebook apps error can't load URL the domain of this URL isn't included in the app's domains?

Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings. Click Save Changes. And test social login with Facebook again.

Where can I find app domain?

the app domain is your domain name. Before you enter your domain, first click on Add Platform, select website, enter your site URL and mobile site url. Save the settings. Thereafter, you can enter the domain name in the App domains field.

Where is client OAuth settings in Facebook?

In your Facebook app configuration, click on the Settings tab on the left-hand navigation menu. Then go to the Advanced tab at the top and scroll down to the Client OAuth Settings section.


1 Answers

If you are getting same Error means you have Enter Wrong URIs in "Valid OAuth redirect URIs" while Registering my application with Facebook.

  1. Choose App where you are getting error while Registering
  2. After Choose App go to "PRODUCTS" section in that section choose Facebook Login , inside that section choose "Setting", after choosing "Client OAuth Settings" panel will appear in that there is "Valid OAuth redirect URIs" textbox in that just enter your localhost URL [http://localhost: Port Number/signin-facebook].

e.g if you localhost URL is "http://localhost:8000/Account/Login" then while entering in "Valid OAuth redirect URIs" textbox enter "http://localhost:8000/signin-facebook" and click on Save Changes

Registering Facebook Application

Registering Facebook Oauth

like image 186
Saineshwar Avatar answered Sep 25 '22 02:09

Saineshwar