title: Android FB API 3.0 - set permissions only once
body: <p>I'm trying to figure out how new API works, so I've managed to understand the concept, and managed to do my own "hello world", that log on to facebook, log out and try to upload image.</p>
  
  <p>Now in both HelloFacebookSample and SessionLoginSimple, there is a simple login to facebook, and in the HelloFacebookSample, when you click "Post photo", a new dialog for login appears, because the permissions are not set.</p>
  
  <p>this is the code from HelloFacebookSample:</p>
  
  <pre><code> private void performPublish(PendingAction action) {
      Session session = Session.getActiveSession();
      if (session != null) {
          pendingAction = action;
          if (session.getPermissions().contains("publish_actions")) {
              // We can do the action right away.
              handlePendingAction();
          } else {
              // We need to reauthorize, then complete the action when we get called back.
              Session.ReauthorizeRequest reauthRequest = new Session.ReauthorizeRequest(this, PERMISSIONS).
                      setRequestCode(REAUTHORIZE_ACTIVITY).
                      setLoginBehavior(SessionLoginBehavior.SSO_WITH_FALLBACK);
              session.reauthorizeForPublish(reauthRequest);
          }
      }
  }
  </code></pre>
  
  <p>So as we do not have "publish_actions" we need to reauthorize. </p>
  
  <p>In SimpleSessionLogin login looks like this:</p>
  
  <pre><code>private void onClickLogin() {
      Session session = Session.getActiveSession();
      if (!session.isOpened() &amp;&amp; !session.isClosed()) {
          session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback));
      } else {
          Session.openActiveSession(this, true, statusCallback);
      }
  }
  </code></pre>
  
  <p>So, I can't figure out how to request permissions during login. It's kind a weird or to say redundant to log in to the service twice in couple of seconds with exactly the same dialog.</p>
  
  <p>It can sound to user that something is wrong or weird.</p>
  
  <p>I want to log to facebook once, with wanted permissions, but using API 3.0 Session calls, not the deprecated one. </p>
  
  <p>Can anyone please explain how?</p>