Wechat Login Facebook -
// Sign in with Facebook const fbCred = FacebookAuthProvider.credential(fbToken); await signInWithCredential(auth, fbCred); // Later sign in with WeChat (via custom token) const wechatToken = await getWechatCodeFromSDK(); const customToken = await backendExchangeWechatCode(wechatToken); await signInWithCustomToken(auth, customToken); // Firebase links accounts if email matches | Goal | Feasibility | |------|--------------| | “Login to WeChat using Facebook credentials” | ❌ Not supported by WeChat | | “Login to your app using WeChat or Facebook, with linked accounts” | ✅ Fully supported via backend account linking |
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o", "access_token": "ACCESS_TOKEN", "unionid": "optional" wechat login facebook
For most apps, implement and merge user accounts on the backend using email or phone number as the common identifier. // Sign in with Facebook const fbCred = FacebookAuthProvider