title: Login with extra permission with Facebook SDK 3 for Android
body: <p>I followed the step of "Create a new Android Project with Facebook Login" section at <a href="https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/">https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/</a> The login process is fine. Because I would like to use the native Android button for a user to log in, I modify the code slightly by moving the following code into a View.OnClickListener() of a native Android button. The following is the code in the listener:</p>
  
  <pre><code>Session.openActiveSession(MainActivity.this, true, new Session.StatusCallback() {
      // callback when session changes state
      @Override
      public void call(Session session,SessionState state, Exception exception) {
          if (session.isOpened()) {                           
              // make request to the /me API
              Request.executeMeRequestAsync(session,new Request.GraphUserCallback() {
  
                  // callback after Graph API
                  // response with user object
                  @Override
                  public void onCompleted(GraphUser user,Response response) {
                      if (user != null) {
                          Toast.makeText(getApplicationContext(), "Hello " + user.getName() +" "+user.getId()+"!", Toast.LENGTH_LONG).show();
                      }
                  }
              });
          }
      }
  });
  </code></pre>
  
  <p>The onActivityResult() and AndroidManifest.xml is the same as the tutorial</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
  }
  </code></pre>
  
  <p>However, I would like to request get "read_friendlists" when a user logs in successfully. I read the tutorial at <a href="https://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/authenticate/">https://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/authenticate/</a> but it uses Facebook SDK customized button. How can I achieve the same behavior with a native Android button like my code shown above?</p>