Unable to load URL: the domain of this URL is not included in application domains. Django Facebook Auth

I am using login for my Django application. Facebook recently updated its security feature to include Strict Mode for all apps. After this change, users cannot log in to the site because it says below error

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 to the Application Domains field in your application settings.

But the domain name in setting up the domain domain is beautiful. I think I'm wrong in setting redirct_uri. I read a lot in the Facebook development team, but could not find a solution. Can anyone help me enter image description here

+5
source share
1 answer

Finally figured it out! On the page where your error appears (screenshot below), you will see a url parameter called "redirect_uri". You need to copy this text and then decode it using this site: url-encode-decode.com . Finally, you will need to use this exact text as the "Valid oauth redirect URIs" field.

error message

Important: At first, when I did this, I noticed that the redirect_uri parameter contains a parameter called redirect_state , which changes every time you log in.

This makes it impossible to list ALL redirect URIs in Facebook login settings. If you see the redirect_state parameter, you will need to update the Python social-auth-core package to version> 1.6 (I got this information from here )

Once you do this, you will have a redirect URL with no parameters on the Facebook error page, which will work for you.

The following steps work for me AFTER upgrading to social-auth-core version 1.7:

working uris redirect

+4
source

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


All Articles