Facebook Sign Out - MLSDev/LiveDataSocialAuth GitHub Wiki
With the FacebookAuth
Call the signOut() method in the FacebookAuth object. The observable value is Status
facebookAuth.logOut()
.observe(this, Observer { status ->
if (it.success) {
// The user has been signed out
} else {
// Show the [status.message] if needed
// Do your stuff on error
}
})
With the SocialAuthManager
socialAuthManager.signOut(this).observe(this, Observer { status ->
if (it.success) {
// The user has been signed out
} else {
// Show the [status.message] if needed
// Do your stuff on error
}
})
this represents the LifecycleOwner