Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSSDK Unknown Host domain

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.

The Problem

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.

Facebook Error Image

like image 690
kneeki Avatar asked Aug 26 '21 04:08

kneeki


People also ask

What is Jssdk unknown host domain?

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.

How do I toggle Jssdk option?

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.

What is Facebook JavaScript SDK?

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.


Video Answer


1 Answers

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: FB App

(I used Chrome english translation, sorry if the fields doesn't have the same words ;) )

like image 129
elhef Avatar answered Dec 28 '22 17:12

elhef