askidmobile / angular-6-social-login-v2

Social authentication module for Angular 6. Includes Facebook, Google, Vkontakte
0 stars 6 forks source link

Login Provider not found on signout for facebook? #10

Open fahadsubzwari924 opened 4 years ago

fahadsubzwari924 commented 4 years ago

In angular-6-social-login-v2 documentation there is 'singOut' function for any social platform. But i am implementing any way Fb signOut function. But when i am calling signOut function like this

     `this.socialAuthService.signOut().then(res => {
            console.log('Fb signout response : ', res)
            if (res) {
                localStorage.clear()
                localStorage.setItem('_isUserLoggedIn', 'false')
                this.navigate('/home');
            }
        })
            .catch(err => {
                this._popupService.OpenError(err)
      })`

But it's giving an error like this Login Provider not found.

How can i provide Login provider to singOut function. Please guide me about facebook singOut call. I a using angular7.