title: Android Kotlin - Facebook Login - get user data
body: <p>I'm new in android developement and already searched for hours without finding the way how to get the damn user data after facebook login!</p>
  
  <p>This is the code:</p>
  
  <pre><code>private var callbackManager: CallbackManager? = null
  
  override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      setContentView(R.layout.activity_fb_connect)
  
  
  
  
          // Login
          callbackManager = CallbackManager.Factory.create()
          LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList("public_profile", "email"))
          LoginManager.getInstance().registerCallback(callbackManager,
                  object : FacebookCallback&lt;LoginResult&gt; {
                      override fun onSuccess(loginResult: LoginResult) {
                          Log.d("letsSee", "Facebook token: " + loginResult.accessToken.token)
  
                      }
  
                      override fun onCancel() {
                          Log.d("letsSee", "Facebook onCancel.")
  
                      }
  
                      override fun onError(error: FacebookException) {
                          Log.d("letsSee", "Facebook onError.")
  
                      }
                  })
  
  }
  
  override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
      super.onActivityResult(requestCode, resultCode, data)
  
      callbackManager?.onActivityResult(requestCode, resultCode, data)
  
      Log.d("letsSee", "malsehnnnnnn: " + data)
  }
  </code></pre>
  
  <p>The <code>Log.d("letsSee", "malsehnnnnnn: " + data)</code> at the bottom gives: <code>malsehnnnnnn: Intent { (has extras) }</code></p>
  
  <p>Where is the damn data???? The facebook docs are weird and very poor!</p>