Error code: 4201, User cancelled Dialog


#1

Hi, I am having an issue with Facebook.login here is my code:
`logIn(){
console.log(“prueba”);
var _authInfo;

Facebook.login(['public_profile','email'])
  .then((_response) => {
    console.log(_response);
    console.log('Entra al then');
    _authInfo = _response;

    return this._FBUserProfile();

  }).then((success) => {
    console.log('Success!!');
    //let p: any = firebase.auth.FacebookAuthProvider as firebase.auth.FacebookAuthProvider_Instance
    this.fbProfile = success;
    //let creds = (firebase.auth.FacebookAuthProvider as any).credential(_authInfo.authResponse.accessToken)


  })
  .catch((_error) => {
    console.log('error en logueo');
    console.log(JSON.stringify( _error));
  })

}`
So it tries to display a dialog to logIn the user with the FB account, but instead it display this error:

{"errorCode":"4201","errorMessage":"User cancelled dialog"}

Does anyone knows what put with that? Have tried many things but still getting the same error

Thanks


#2

any progress on this. i am facing the same issue.