daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 106 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. // Register the callback for the Facebook authentication
  2. LoginManager.getInstance().registerCallback(callbackManager, object : FacebookCallback<LoginResult> {
  3.     override fun onSuccess(result: LoginResult?) {
  4.         Log.d(TAG, "Facebook token = ${result?.accessToken?.token}")
  5.         toast("Access Token received")
  6.    }
  7.  
  8.     override fun onCancel() {
  9.         Log.d(TAG, "Facebook authentication is cancelled")
  10.         toast("Facebook Authentication is cancelled")
  11.     }
  12.  
  13.     override fun onError(error: FacebookException?) {
  14.         Log.e(TAG, "Facebook Authentication failed: ${error?.message}")
  15.         toast("Facebook Authentication failed: ${error?.message}")
  16.     }
  17. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top