title: Get publish_action permission after getting read permissions from Facebook
body: <p>I'm integrating <code>Facebook</code> log in in my application. I'm able to get the read permissions but how to get publish permissions from Facebook SDK. </p>
  
  <p>This is how I'm asking for the permissions for read:</p>
  
  <pre><code>@Override
  public void onClick(View v) {
  Session currentSession = Session.getActiveSession();
  if (currentSession == null
      || currentSession.getState().isClosed()) {
      Session session = new Session.Builder(context).build();
      Session.setActiveSession(session);
      currentSession = session;
  }
  
  if (currentSession.isOpened()) {
      // Do whatever u want. User has logged in
  
  } else if (!currentSession.isOpened()) {
      // Ask for username and password
      OpenRequest op = new Session.OpenRequest((Activity) context);
  
      op.setLoginBehavior(SessionLoginBehavior.SSO_WITH_FALLBACK);
      op.setCallback(null);
  
      List&lt;String&gt; permissions = new ArrayList&lt;String&gt;();
      permissions.add("user_likes");
      permissions.add("email");
      permissions.add("user_birthday");
      permissions.add("user_location");
      permissions.add("user_interests");
      permissions.add("friends_birthday");
      op.setPermissions(permissions);
  
      Session session = new Builder(MainActivity.this).build();
      Session.setActiveSession(session);
      session.openForRead(op);
      }
  }
  });
  </code></pre>
  
  <p>If user granted the permission I'm able to get <code>access_token</code> and doing my things on <code>onActivityResult</code>. Here is what I'm doing with that:</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
  
  super.onActivityResult(requestCode, resultCode, data);
  if (Session.getActiveSession() != null)
      Session.getActiveSession().onActivityResult(this, requestCode,
              resultCode, data);
  
  Session currentSession = Session.getActiveSession();
  if (currentSession == null || currentSession.getState().isClosed()) {
      Session session = new Session.Builder(context).build();
      Session.setActiveSession(session);
      currentSession = session;
  }
  
  if (currentSession.isOpened()) {
      Session.openActiveSession(this, true, new Session.StatusCallback() {
  
      @Override
      public void call(final Session session, SessionState state,
          Exception exception) {
  
          if (session.isOpened()) {
  
          Request.executeMeRequestAsync(session,
              new Request.GraphUserCallback() {
  
                  @Override
                  public void onCompleted(GraphUser user,
                      Response response) {
                  if (user != null) {
  
                      TextView welcome = (TextView) findViewById(R.id.welcome);
                      TextView access_token_txt = (TextView) findViewById(R.id.access_token);
                      TextView email_txt = (TextView) findViewById(R.id.email);                                           
  
                      access_token = session.getAccessToken();
                      firstName = user.getFirstName();
                      fb_user_id = user.getId();                                          
  
                      access_token_txt.setText(access_token);
  
                      JSONObject graphResponse = response
                          .getGraphObject().getInnerJSONObject();
  
                      fbEmail = null;
                      try {
                          fbEmail = graphResponse.getString("email");
  
                          } catch (JSONException e) {
                              e.printStackTrace();
                          }
  
                      email_txt.setText(fbEmail);                                         
                      }
                  }
              });
          }
      }
  });
  }
  }
  </code></pre>
  
  <p>I have read <code>Facebook Developer</code> doc as explained here <a href="https://developers.facebook.com/docs/facebook-login/permissions/#optimizing">Permissions - Facebook Developers</a>, that I cant ask publish permissions with read permissions. </p>
  
  <p>First user will have to ask for read and when user autorizes that then we can ask for publish permissions.</p>
  
  <p>How can I get publish permissions from Facebook log in after user as granted read permissions.</p>
  
  <p>Any kind of help will be appreciated.</p>