Unable to perform Business Login with the JavaScript SDK.
1

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:

  • Business verified.
  • Only 'public_profile' and 'email' have Advanced access.
  • Added 'https://localhost' to 'Allowed Domains for the JavaScript SDK.
桑野 優基
已發問 約 7 個月前
桑野 優基

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);
    }
3月12日 01:35