jaredhanson / passport-facebook

Facebook authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-facebook/?utm_source=github&utm_medium=referral&utm_campaign=passport-facebook&utm_content=about
MIT License
1.29k stars 446 forks source link

Warning Can't Load URL: #284

Open israelpanopio opened 3 years ago

israelpanopio commented 3 years ago

I'm getting the error as per below.

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

Has anybody experienced the same issue and how to fix it?

psheraton commented 2 years ago

I'm sure you figured this out by now but for future reference you need to configure this in your facebook app admin settings under Facebook Login -> Settings there will be a Valid OAuth Redirect Urls and also Allowed Domains for Javascript SDK

https://developers.facebook.com/apps/YOUR-APP-ID-HERE/fb-login/settings/

bashlk commented 11 months ago

This setting is too hidden in the new versions of the facebook developer console - could only trigger it with the URL that @psheraton mentioned above and later found it under Products -> Facebook login -> Configure -> Settings. Setting the more obvious App domains setting in App settings -> Basic didn't fix anything for me.