Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fylzero's avatar
Level 67

Getting `Can't Load URL` with Laravel Socialite using Facebook

Trying to setup Facebook login with Laravel Socialite... getting the following error trying to test from my local setup.

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.

App Domains: myapplication.test

Website Site URL: https://myapplication.test/

I am using Valet to test from local. I'm using valet secure so my local site is https. My keys are setup and being referenced in the app.

I can't figure out why this isn't working. I've tried several variations...

Any ideas why this is happening?

0 likes
4 replies
fylzero's avatar
Level 67

@nakov It turned out to need Valid OAuth Redirect URIs contain the callback URI. Not exactly a helpful error on Facebooks part.

4 likes
Nakov's avatar

@fylzero thanks for sharing the result. I guess it might also have to do with using a local url, not publicly available, but yeah the error is not really pointing towards this :)

fylzero's avatar
Level 67

@nakov Nah, it works locally. It just detects where it came from and issues a callback.

1 like

Please or to participate in this conversation.