With the new Facebook changes on August 1, 2021 (I think) the Developer Dashboard > Facebook Login settings have been updated and now include a Allowed Domains for the JavaScript SDK section.
I cannot add a port number to the domain like I can in the Valid OAuth Redirect URIs section. After clicking Save Changes the port numbers are removed from the entries. Our app is currently in development, and while serving the app from https://www.example.localhost:4200
we are given the error while using the Facebook JavaScript SDK:
JSSDK Unknown Host domain: The Domain you are hosting the Facebook Javascript SDK is not in your app's Javascript SDK host domain list. Please specify your host domain in App dashboard login settings.
The Problem JSSDK Unknown Host domain: The Domain you are hosting the Facebook Javascript SDK is not in your app's Javascript SDK host domain list.
Enable JavaScript SDK for Facebook Login Indicate that you are using the JavaScript SDK for login by setting the Login with JavaScript SDK toggle to “yes”, and enter the domain of your page that hosts the SDK in Allowed Domains for JavaScript SDK list.
The Facebook SDK for JavaScript provides a rich set of client-side functionality that: Enables you to use the Like Button and other Social Plugins on your site. Enables you to use Facebook Login to lower the barrier for people to sign up on your site. Makes it easy to call into Facebook's Graph API.
The same problem, but I used the field "Authorized domains for the JavaScript SDK" with the URL and port and it works.
Here with your URL:
(I used Chrome english translation, sorry if the fields doesn't have the same words ;) )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With