Inicio de sesion
Iniciar Sesion
Login
No Tengo Cuenta
Login with Facebook
const btnFacebook = document.getElementById('button-facebook'); btnFacebook.addEventListener('click', () => { signInWithPopup(auth, provider) .then((result) => { const user = result.user; const credential = FacebookAuthProvider.credentialFromResult(result); const accessToken = credential.accessToken; }) .catch((error) => { const errorCode = error.code; const errorMessage = error.message; console.error(errorCode, errorMessage); }); });