title: What does SessionState.OPENED_TOKEN_UPDATED mean in Facebook SDK 3.0.1b for Android
body: <p>I am working on an app and it has code in which I have extended my class with <code>FacebookActivity</code> and I wanted to know what does OPENED_TOKEN_UPDATED mean and when will this portion execute</p>
  
  <pre><code>if (state.equals(SessionState.OPENED_TOKEN_UPDATED)) { 
                          //WHEN THIS PORTION WILL EXECUTE
                      }
  </code></pre>
  
  <p>Facebook documents are not so good. See below code also</p>
  
  <pre><code>    @Override
      protected void onSessionStateChange(SessionState state, Exception exception) {
          if (isResumed) { //if its a visible activity
              FragmentManager manager = getSupportFragmentManager();
              int backStackSize = manager.getBackStackEntryCount(); //get number of entries currently in the back-stack
              for (int i = 0; i &lt; backStackSize; i++) {
                  manager.popBackStack(); //clear fragment back-stack before new fragment is added
              }
              if (state.isOpened()) {
                  if (state.equals(SessionState.OPENED_TOKEN_UPDATED)) { 
                      //WHEN THIS PORTION WILL EXECUTE
                  }else{
                      //replace fragment on main with promo fragment
                      FragmentTransaction transaction = manager.beginTransaction();
                      transaction.replace(R.id.body_frame, fragments[NextFgragment]).commit();
  
                  }
              } else if (state.isClosed()) {
  
                  //replace fragment on main with login fragment
              }
          }
      }
  </code></pre>