Unable to load URL: The domain of this URL is not included in the application domains on Facebook. Login to ASP.NET MVC

After registering my Facebook application to use Facebook OAuth Login with ASP.NET application, I received an error. when I click the Facebook button in the development environment.

Unable to load URL: the domain of this URL is not included in the application domains. To download this URL, add all the domains and subdomains of your application in the "Application Domains" field in your application settings.

Login screen

Login screen

Error displayed

Error displayed

+5
source share
3 answers

If you get the same error, then you have the wrong URIs in " Valid OAuth redirect URIs " when registering my application with Facebook.

  • Select the application in which you receive an error during registration
  • After selecting the application, go to the PRODUCTS section "in this section, select Facebook Login , in this section select" Settings ", after selecting" OAuth client configuration "will appear in the form in which there is a valid OAuth redirect URIs text box that simply enter your local host URL [ http: // localhost : Port number / signature-facebook].

For example, if the localhost URL is “ http: // localhost: 8000 / Account / Login ” then when you enter “ Valid OAuth redirect URIs ” in the text box, enter “ http: // localhost: 8000 / signin-facebook " and click Save Changes

Facebook application registration

Register Facebook Oauth

+8
source

Just write carefully in the OAuth redirect URI: http://{ your host }:{ port number } (for example, http://example.com:8000 ).

+1
source

There are two parts that you need to fill out. And on the right side of the application settings panel.

  • Settings → Advanced → Domain Manager (add URL)
  • PRODUCTS → Facebook Logion → Settings → Valid OAuth Redirect URIs Here to add your URL.
0
source

Source: https://habr.com/ru/post/1272776/


All Articles