Я пытаюсь добавить логин на Facebook в моем ионном приложении.но когда я нажимаю на логин через фейсбук, он показывает мне коробку подтверждения.затем, когда я нажимаю на кнопку «Продолжить», она не переходит на другую страницу.кто-нибудь может сказать мне, где проблема приходит?
socialSignIn (socialPlatform: строка) {
if (socialPlatform === 'facebook') {
this.facebookLoader = true;
this.fb.login(['public_profile', 'email'])
.then((res: FacebookLoginResponse) => {
this.fb.api('me?fields=id,name,email,first_name,picture.width(720).height(720).as(picture_large)', []).then(userData => {
const email = userData.email;
const token = userData.token;
const id = userData.id;
this.email_facebook = userData.email;
this.name_facebook = userData.name;
this.id_facebook = userData.id;
this.token_facebook = userData.token;
const subscription = this._userService
.login_facebook(email, id, token)
.subscribe((resp) => {
this.facebookLoader = false
if (resp) {
// this.viewModalStepTwo = true;
this._userService.registrationInterests = true;
this.navCtrl.setRoot(InterestsPage);
} else {
this.navCtrl.setRoot(TabsPage);
}
});
this.subscribes.push(subscription);
});
})
.catch(e => {
this.facebookLoader = false
});
} else if (socialPlatform === 'google') {
this.googlePlus.login({})
.then(res => this.navCtrl.setRoot(TabsPage))
.catch(err => console.error(err));
}
}