[APTOS - sapphire_mainnet] - facebook OAuth 'Feature Unavailable' error

When I use Facebook Login on sapphire_mainnet, there is a facebook login issue

here is our web3auth modal code.
there is no customize authentication config code.
so, i think this error didn’t caused by code, but caused on web3auth itself.

let chainConfig;
    const network = process.env.NEXT_PUBLIC_APTOS_NETWORK;
    if (network === "testnet") {
      chainConfig = {
        chainNamespace: CHAIN_NAMESPACES.OTHER,
        chainId: "0x7E6", //
        rpcTarget: "https://rpc.ankr.com/http/aptos_testnet/v1",
        // Avoid using public rpcTarget in production.
        displayName: "Aptos Testnet",
        blockExplorerUrl: "https://testnet.algoexplorer.io",
        ticker: "APT",
        tickerName: "Aptos",
      };
    } else {
      chainConfig = {
        chainNamespace: CHAIN_NAMESPACES.OTHER,
        chainId: "0x1", //
        rpcTarget: "https://rpc.ankr.com/http/aptos/v1",
        // Avoid using public rpcTarget in production.
        displayName: "Aptos Mainnet",
        blockExplorerUrl: "https://algoexplorer.io",
        ticker: "APT",
        tickerName: "Aptos",
      };
    }

    const privateKeyProvider = new CommonPrivateKeyProvider({
      config: { chainConfig: chainConfig },
    });

    const web3authNoModal = new Web3AuthNoModal({
      // Get it from Web3Auth Dashboard
      clientId: process.env.NEXT_PUBLIC_WEB3AUTH_CLIENT_ID!,
      web3AuthNetwork:
        network === "mainnet"
          ? WEB3AUTH_NETWORK.SAPPHIRE_MAINNET
          : network === "testnet"
            ? WEB3AUTH_NETWORK.TESTNET
            : WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
      privateKeyProvider: privateKeyProvider,
    });

    const openloginAdapter = new OpenloginAdapter({
      adapterSettings: {
        uxMode: UX_MODE.POPUP,
      },
    });

    web3authNoModal.configureAdapter(openloginAdapter);

    setWeb3auth(web3authNoModal);

is it correct? when this error clear? how do i do till it’s done?

Thank you for your message, Fandom Korea Dev! Let’s break down the details so we can assist you effectively.

Issue Details:

  • SDK Details: Help - Plug n Play
  • SDK Version: Not specified; please provide if known.
  • Platform: Not specified; please clarify if applicable.
  • Error: Facebook OAuth ‘Feature Unavailable’ on Aptos Mainnet (Sapphire Mainnet)

Information Gathered:

  • You’re using the Facebook login but encountering an error indicating that the feature is unavailable.
  • You’ve shared your Web3Auth modal code snippet.
  • You mentioned there is no customization in your authentication config.

Next Steps:

  1. Code Review: The code snippet you’ve shared seems to be set up correctly for initializing Web3Auth. The configuration for the Aptos network appears proper.
  2. Facebook Login: Since you’re not seeing a customization, the error may stem from the Facebook integration itself or external factors outside your code.
  3. Proposed Solution:
    • Ensure that your Facebook app is correctly configured in the Facebook Developer Console, especially verifying that the app is set to live and that the necessary permissions are granted.
    • Check if the Facebook provider is enabled in your Web3Auth dashboard as well.

Additional Information Needed:

  • SDK Version: Please let us know the version you are using.
  • Browser Console Screenshots: If possible, provide any relevant error messages or logs from the browser console that might help diagnose the issue further.

Feel free to share any additional details or ask further questions. We’re here to help!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.