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

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

Related

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 API - OAuth issue changes

Ok, I am looking to make some updates to my (running for some months now) Facebook app. I have a test app I created for it for it. The appId and appSecret are set correctly. I have put the domain of my test server into "App Domains". I have added my IP address to the "Server IP Whitelist." I am currently logged into Facebook as the app owner. But I am getting the dreaded:
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 can find no place on the App management screens that reference OAuth - I haven't looked here for a long time, because the app has been running well.
At this point, all I'm trying to do is get the Login button to show, hoping
that getting past that will set me up.
Any ideas? Suggestions?
thanks...

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