I am currently working on a Vue.js app that integrates Firebase for authentication, specifically with the Facebook provider. Despite configuring my Firebase code correctly, I continue to encounter the "Can't load URL: The domain of this URL isn't included in the app's domains." error message every time I test my implementation on http://localhost:8080
.
https://i.sstatic.net/w3QUh.png
After some investigation, it appears that the issue lies in providing a valid "callback" URL to handle the authentication response from Facebook. While Firebase guidelines and my own research confirmed this, attempting to enter the required URL in the Valid OAuth Redirect URIs field within the Facebook App Settings page resulted in rejection, particularly if containing localhost
. Even trying other fields within the Settings page led to the same outcome. A screenshot illustrating this problem can be found here:
https://i.sstatic.net/oOrQd.png
Thus, my inquiries are as follows: 1) How can I configure my Facebook App to permit localhost testing, and 2) How do I overcome the "Can't load URL" Facebook error? If necessary, I am willing to share my pre-login Vue code, noting that I utilize Firebase's linkWithRedirect();
and signInWithRedirect()
methods for logging in (instead of linkWithPopup()
and signInWithPopup()
).