When I tried to initiate the login dialog using FB.login from the Facebook SDK for JavaScript and logged into Facebook, the dialog window turned completely white. The console shows the following error. How should I handle this?
ErrorUtils caught an error:
Minified invariant #21945;
Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs.
Below are the settings for the Facebook app:
In React, the SDK is loaded as follows.
window.fbAsyncInit = function () {
FB.init({
version: 'v18.0',
appId: 'APP_ID',
autoLogAppEvents: true,
xfbml: false,
});
console.log('fbAsyncInit');
};
const elm = document.createElement('script');
elm.async = true;
elm.defer = true;
elm.crossOrigin = 'anonymous';
elm.id = 'facebook-js-sdk';
elm.src = 'https://connect.facebook.net/ja_JP/sdk.js';
document.body.insertAdjacentElement('afterbegin', elm);
}