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

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.

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 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.

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

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.

Facebook Login link redirects straight back to my application without ever showing login dialog

I am attempting to implement a simple Facebook login flow for a web application using HTTP redirects, as detailed at https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.2.
For the purposes of making this question generic, let's say the application URL is www.example.com/app.php. On the application page, there is a link which directs users to Facebook's OAuth endpoint, where ideally:
they log in to Facebook (if not already logged in) and approve my application permission to access their public profile
they are then redirected back to my application's URL along with some extra parameters appended (e.g. www.example.com/app.php?code=...&access_token=... if the login was successful, or www.example.com/app.php?error_reason=...&error=...&error_description=... if login/app approval was unsuccessful)
The Facebook OAuth endpoint is:
www.facebook.com/dialog/oauth?client_id=12345&redirect_uri=www.xyz.com/app.php
where I have filled in the client_id and redirect_uri parameters with my application's ID and my application's URL respectively.
What actually happens whenever I access the link is that it immediately redirects back to my application's homepage - without ever showing a login dialog of any kind. This happens with Firefox and with Chrome - both when I am logged in to Facebook and when I am not, in normal sessions and in incognito sessions with no plugins enabled. From the browser inspector, I can see that the Facebook OAuth page is definitely requested but is straight away 302 redirecting to my application page with just a code parameter appended.
www.example.com/app.php?code=...
This also happens when the Facebook OAuth link is accessed from pages other than my application's URL (e.g. if I click the link from www.example.com/other_page.htm).
I am unsure what I am doing wrong here; the application URL (www.example.com/app.php) is approved on my app dashboard in as many places as I could find, and changing the request_uri parameter to any other URL results in an error page. I have also tried urlencode()ing my application URL before passing it in the request_uri parameter, but the result remains the same. I don't know what to try next as as far as I can tell I have followed Facebook's manual login guide as closely as possible.

Facebook App: Firebase Simple Login URL error

I am trying to make my first app using Facebook login and the Firebase Simple Login. I am running the system locally on http://localhost:8000/. The error I am receiving upon clicking the login button is below.
"Given URL is not allowed by the Application configuration.: One or
more of the given URLs is not allowed by the App's settings. It must
match the Website URL or Canvas URL, or the domain must be a subdomain
of one of the App's domains."
I have tried running it on a production facebook app and a facebook test app as well as added URL redirects and website platforms following other forum post I have seen, but nothing is working for me. Anyone have any suggestions?
I discovered in the Firebase documentation that https://auth.firebase.com/auth/facebook/callback must be input into the Valid OAuth redirect URIs under the advanced settings.
Recap of Facebook Test App Settings:
Under Basic App Settings:
Domain = localhost:8080
URL = http://localhost:8080
Under Advanced App Settings:
Valid OAuth redirect URIs [http://localhost:8080/ ; https://auth.firebase.com/auth/facebook/callback]
with newest version, Valid OAuth redirect must be set as : https://.firebaseapp.com/__/auth/handler