jaredhanson/passport-facebook

Warning Can't Load URL:

israelpanopio opened this issue · 2 comments

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?

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

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.