-
Notifications
You must be signed in to change notification settings - Fork 1
Facebook Login Usage
Serhii Petrosyuk edited this page Apr 19, 2019
·
6 revisions
To log in with the Facebook account build a FacebookAuth object and call the signIn()
method. Observe the auth result with any LifecycleOwner instance.
FacebookAuth.Builder(this)
.requestEmail()
.requestProfile()
.enableSmartLock()
.build()
.signIn()
.observe(this, Observer { authResult ->
if (it.isSuccess) {
// Do your further stuff with the [authResult.account] here
} else {
// Handle the [authResult.exception] here
}
})