Skip to content

Facebook Sign Out

Serhii Petrosyuk edited this page Jun 12, 2019 · 3 revisions

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 
        }
    })
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

Clone this wiki locally