title: Android Facebook SDK openActiveSession(...) doesn't trigger callback
body: <p>I'm working on an app that uses Facebook login. On app startup, calling <code>Session.getActiveSession()</code> returns null. I have a check to see if the session is null and if it is, run the method <code>Session.openActiveSession(Activity activity, boolean allowLoginUI, StatusCallback callback)</code>. </p>
  
  <p>I want to keep the boolean in that method set to false because I want to send the user to a custom login activity if needed, and setting that parameter to true brings up the basic login permissions window (not desired). But when I set the parameter to false, the method doesn't even trigger a session state change and doesn't trigger the associated callback (the third parameter). If I set the parameter to true, and then back out of the subsequent dialog, the callback triggers.</p>
  
  <p>UPDATE: The purpose is to initialize the <code>Session</code> object without using the standard LoginUi. I've tried everything I can think of and nothing will initialize the session. If the user hasn't logged in, I want to change to another <code>Activity</code> where I have a standard <code>LoginButton</code>.</p>
  
  <p>Here's the code I'm using:</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
  
      Session.StatusCallback callback = new Session.StatusCallback() {
          @Override
          public void call(Session session, SessionState state, Exception exception) {
              Log.i("MainActivity", "calling session callback");
              onSessionStateChange(session, state, exception);
          }
      };
      session = Session.getActiveSession();
      if(session==null){
          Log.i("MainActivity", "session is null");
          Session.openActiveSession(this, false, callback);
      }
      else{
          if(session.isClosed()){
              Log.i("MainActivity", "session is closed");
              startActivityForResult(new Intent("&lt;custom login activity&gt;"), LOGIN_REQUEST);
          }
          else if(session.isOpened()){
              Log.i("MainActivity", "session is opened");
              initializeActivity();
          }
      }
      uiHelper = new UiLifecycleHelper(this, callback);
      uiHelper.onCreate(savedInstanceState);
  }
  </code></pre>