python-social-auth and facebook login: what is the whitelist redirect url to include in fb configuration? - python-social-auth

I was getting this facebook login error:
URL Blocked
This redirect failed because the redirect URI is not
whitelisted in the app’s Client OAuth Settings. Make sure Client and
Web OAuth Login are on and add all your app domains as Valid OAuth
Redirect URIs.
Facebook login requires whitelisting of the call-back url.
what is the call back url for django-social-auth or python-social-auth ?

include a url to your website that is the absolute url version of this relative url:
/complete/facebook/
how to find this out?
use Chrome browser dev tools, enable preserve log, try to login to your app.
This question / answer is for django-social-auth but likely applies to python-social-auth too.

Related

On Mobile Login : Can't Load URL: The domain of this URL isn't included in the app's domains

I always get this error when I try to login in my application, which uses facebook login on my phone, however my app links perfectly fine on my computer, just not on my phone.
I believe it may have something to do with the facebook login being a new pop-up page on computers, whereas on mobile its loaded as a page.
I have tried everything and the errors will alternate between:
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 subdomains of your app to the App Domains field in your app settings.
and
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. (which I able to login but the app fails to go to my main page which then gives this error)
depending on whether I leave the "Valid OAuth ReDIRECT Urls" section blank.(till this point I have tried all posisble redirect urls I can think of, but its no use) I have also enabled client and web oauth login and login from devices.
The Url error is of no help, which is just the error:
https://m.facebook.com/dialog/oauth?client_id=xxxxxxxxxxxx&redirect_uri=https%3A%2F%2Fxxxxxxxxxxx.azurewebsites.net%2F%3Fcode%3DAQBuiSRMjQ3Cpsy4SClqCyzTU9ReSvOTynI67PNIBAI0kmj1qLDb5poUzVEZSlPtUjnQ_TpXTvS7yggVJpnZiVuP6tcp4kyD3EYfjc-_5g9bSNBdUDnjixB4AufqfbYiQD6pHlRR3qhkDoOXrL56WfP7WlA0a_OZ4Me8BqfrmDd6tLuqIezi4IE-88QljOdDtekKed9z-AQuakSKty1Zu8ER91Ie3iCLBG8Fd7CczXFJkJm6aLB29QjWTC3HTPWIsknNSl_O93urR8ChochH2ANuN2hYLUD8SH6SDVYS0q4oN3_OLqqdToYwWWoZwzjop0OcWq6xiDzb5_CXnapPsP78%26state%3Dfacebookdirect%23_%3D_&state=facebookdirect&return_scopes=false&scope=public_profile%2Cemail&response_type=code&auth_type

Facebook Login - Can't Load URL: The domain of this URL isn't included in the app's domains

I really have problem with Facebook. The old application don't require Valid OAuth redirect URIs, today, I have a problem with this app and remove it. I created again. I have two problem is:
Facebook Login not accept http protocol (resolved).
Facebook Login require Valid OAuth redirect URIs (current question)
My URL is: https://sharengay.com/anlink/
When click button Login it show error like:
Can't Load URL: The domain of this URL isn't included in the app's domains
The URL when click button login is:
https://www.facebook.com/v2.10/dialog/oauth?client_id=2165341230417089&state=4bd285b45a9d3fdba98d894cb2fc7efc&response_type=code&sdk=php-sdk-5.5.0&redirect_uri=https%3A%2F%2Fsharengay.com%2Fanlink%2Flogin.php&scope=public_profile%2Cuser_friends
I was add in Valid OAuth redirect URIs is:
Sorry about language, I add three values:
https://sharengay.com/anlink
https://sharengay.com/
https://sharengay.com/anlink/layouts/Social/Connector/SocialLogin.ashx?type=access
I don't have experience with Facebook OAuth. I think I lost URL, so Facebook show this error.

Facebook Login from subdomains (too many "Valid OAuth redirect URIs")

I've faced with the following problem:
I'm using Facebook js sdk for the login process.
In App settings Site URL is set to "http://example.com/", App Domains are "example.com, www.example.com".
In Facebook Login Settings "Valid OAuth redirect URIs" are "http://example.com/, http://www.example.com/".
From the main domain it works just fine, but under subdomain (e.g. http://subdomain.example.com/) i get the following error:
"URL Blocked: This redirect failed because the redirect URI is not
whitelisted in the app’s Client OAuth Settings. Make sure Client and
Web OAuth Login are on and add all your app domains as Valid OAuth
Redirect URIs."
When I add this subdomain to "Valid OAuth redirect URIs", this problem disappears. But I have too many subdomains to list them all. Is it possible to accept all the subdomains as valid OAuth redirect URLs? Or what approach to solve this problem can be?
Thank you very much

Facebook Login Integration Error:

I'm working with a contest platform and am trying to get it to where and individual can create an account via Facebook.
The biggest issue I'm running into is that whenever I enter the domains into the App Domains portion I receive this:"App domains must match the domain of the Secure Canvas URL, Mobile Site URL, Unity Binary URL, Site URL, or Secure Page URL. Please correct these domains:"
Additionally, when I attempt to test the Facebook login button, I receive this error message in the pop-up:"URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs."
I've inquired with the Support Team from the contest platform and was informed of this:
"We had the Engineers look at this issue on your site and it looks like the configuration in facebook might not be correct.
What you need to make sure of is that facebook login authentication is enabled for the Website (Web) then only it will work.
The app domain:------
Contact email: your email address
Then in the Website section
Site url:------"
I can't seem to locate where the "Site URL" section is that I need to be putting in a url. I've put in the OAuth Client Redirect URLs...maybe they aren't correct?
Need some major help here.

Facebook login with JavaScript SDK error: “This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings”

Description: I am developing ionic hybrid application with social logins(facebook,twitter and google+) using backendless. social logins are working in the desktop browser but not in real device. While debugging I got
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
These are screen shotsenter image description here
Problem: While registering our application with facebook they will ask for OAuth Redirect URL.There I have mentioned https://api.backendless.com/,http://localhost:8100/ionic-lab.
Social logins are working properly in desktop.When I run ionic application in android it will open backendless site with empty page, because for mobile also we should give OAuth Redirect UrIs since it is API key how could we give url for OAuth Redirect UrIs?
Please could anybody help me? I got struct since last 2 days..