My app could not login via facebook

Today i dont know why my app could not login via Facebook, pls help me check asap. PLSSSS

Hey @thienphuoc.huynh
Can you please help me translate the error message into English?

Hi, this is english: “The “Login with Facebook” feature is not currently enabled for this app.”

Thanks for the translation.

Are you using your custom facebook verifier?

Can you share the init and login code snippet?

I don’t use custom facebook. My code:

 try {
    const web3auth = new Web3Auth({
      clientId,

      chainConfig: {
        chainNamespace: CHAIN_NAMESPACES.EIP155,
        chainId: process.env.NEXT_PUBLIC_MAIN_NET_CHAINID,
        rpcTarget: process.env.NEXT_PUBLIC_RPC_TARGET, // This is the public RPC we have added, please pass on your own endpoint while creating an app
      },
      mfaLevel: 'none',
      // uiConfig refers to the whitelabeling options, which is available only on Growth Plan and above
      // Please remove this parameter if you're on the Base Plan
      // uiConfig: {
      //   name: 'Appname',
      //   logoLight: process.env.NEXT_PUBLIC_URL + '/logo.png',
      //   logoDark: process.env.NEXT_PUBLIC_URL + '/logo.png',
      //   defaultLanguage: 'en',
      //   dark: true, // whether to enable dark mode. defaultValue: false
      //   loginMethodsOrder: ['apple', 'google', 'twitter'],
      //   loginGridCol: 1,
      //   primaryButton: 'socialLogin', // "externalLogin" | "socialLogin" | "emailLogin"
      // },
      web3AuthNetwork: process.env.NEXT_PUBLIC_NET,
    });
    await web3auth.initModal();
    return web3auth;

    // await web3auth.initModal();

    // if (web3auth.connected) {
    //   console.log('web3auth Init connected');

    //   // setLoggedIn(true);
    // }
  } catch (error) {
    console.error(error);
    return null;
  }

Pls help me check

Hi @shahbaz , any update this case ?

I got JWT on facebook error page:
image
How to login via facebook no need custom verifier ? plss

I want to use default, i dont want to use custom. How to use default for login via FB ?

Before, we had declared that custom setting, but we didn’t use it. The code only used the default one, and it worked fine. Now, we’ve deleted that Facebook app, but for some reason, it’s affecting the login, and we can’t log in with Facebook anymore. Please help check it

this is error messge from FB: The domain of this URL is not included in the application’s domains. To load this URL, please add all domains and subdomains of the application to the App Domains field in your application’s settings.

anyone here for help me check this bug ?

Hi @vjgee , help me check this bug. plssss

@shahbaz , are you here?

Hey @thienphuoc.huynh

I apologize for the delayed response due to the weekend. Thank you for sharing the code.

Could you tell me which version of Web3Auth you are using? The JWT verifier is torus, which is outdated. Also, which SDK are you using?

Thank for reply. My version:

"@walletconnect/ethereum-provider": "^2.10.4",
   "@walletconnect/modal": "^2.6.2",
   "@walletconnect/sign-client": "^2.10.4",
   "@walletconnect/web3-provider": "^1.8.0",
   "@web3auth/base": "7.2.0",
   "@web3auth/metamask-adapter": "^7.2.0",
   "@web3auth/modal": "^7.2.0",
   "@web3auth/torus-evm-adapter": "^7.2.0",
   "@web3auth/torus-wallet-connector-plugin": "^7.2.0",
   "@web3auth/wallet-connect-v2-adapter": "^7.2.0",
   "@web3auth/web3auth": "1.1.4",

I dont know why? You said updated to new version but dont support old version ?

Only the following are supported by us.

   "@web3auth/base": "7.2.0",
   "@web3auth/metamask-adapter": "^7.2.0",
   "@web3auth/modal": "^7.2.0",
   "@web3auth/wallet-connect-v2-adapter": "^7.2.0",

And the latest version of these are 9.7.0. Check details here.

ok thank bro, i will update now

2 Likes

I tried and still got error flogin via fb. But i try with new client id is OK. Pls check problem with my clientid: BNkriezikGSdwHnsGlIDfGBybrUDeWPs68eQ8RSqsn8u9QCrbyBFmIBQnRpKGr7cqtn9yir8oGC3kuBxHNRGOfk

I use this clientID on local is OK but why run on production got error from FB ?