Hi,
I using Modal login, login with google is ok but failed with Facebook
Pls help me check
Hey @thienphuoc.huynh
I understand you’re facing issues with Facebook Login. For your particular issue, i would suggest you to follow these steps specified here.
I might need more info about this error. I tried default FaceBook login with our examples and it’s working. Could you please host your example or share your repo so that I can pinpoint the error?
Ok bro, i will host my sample and give you link for testing.
Thanks
Hi @maharshi ,
Can you help me check my account, Why could not using default Verifiers as Documents.
Everything is ok still got this issues 2 day ago .
1. `Default Verifiers`: These are the verifiers associated with OAuth providers(Google, Facebook, Apple etc.) which are owned and managed by Web3Auth's account.
Can you give me you email ? I will send link sample to you for testing
Sorry because this private cause I don’t want to publish link on forum
Thanks
Me and my colleagues have tried it out and it works fine for them. Can you please share the logs when this happens for you? @skb @thienphuoc.huynh
Please check your messages.
Hey @thienphuoc.huynh
Please share your web3auth initialization and the part where you specify facebook as a login provider? Also, please provide the version of modal sdk you’re using?
@maharshi, I have all the info you requested, but I do not want to post it on the public forum, is there a way I can provide it separately?
In the mean time, you can really easily test yourself.
Instruction to recreate:
Click “Sign In With”
Select Facebook
Dependencies
“@web3auth/base”: “^7.1.0”,
“@web3auth/metamask-adapter”: “^7.1.0”,
“@web3auth/no-modal”: “^7.1.1”,
“@web3auth/torus-evm-adapter”: “^7.1.0”,
Images:
Hi @maharshi ,
"@web3auth/base": "^7.0.1",
"@web3auth/metamask-adapter": "^7.0.1",
"@web3auth/modal": "^7.0.2",
"@web3auth/torus-evm-adapter": "^7.0.1",
"@web3auth/torus-wallet-connector-plugin": "^7.0.1",
"@web3auth/wallet-connect-v2-adapter": "^7.0.2",
"@web3auth/web3auth": "1.1.4",
import {CHAIN_NAMESPACES} from '@web3auth/base';
import {Web3Auth} from '@web3auth/modal';
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;
Hey @thienphuoc.huynh
Can you please upgrade to the latest version of the SDK and if possible, try out with custom verifier for Facebook?
Can you give me version number of the SDK ?
If I use custom verifier for Facebook , this issues has resolve ?
Please check once more, @thienphuoc.huynh and @skb. The fix is in place and I have tested it with our sample app as well. Thanks for your patience.
Looks great appreciate the quick response!