/**
  * Transition for when the user decides to change the selected page.
  */
 private static function transition_edit_page()
 {
     Instant_Articles_Option_FB_Page::delete_option();
     // For backwards compatibility, we transition one step back
     // for users of the old versions that selected a page but the
     // plugin didn't save the user access token. In this case
     // we need the user to log in again.
     $fb_app_settings = Instant_Articles_Option_FB_App::get_option_decoded();
     $user_logged_in = !empty($fb_app_settings['user_access_token']);
     if (!$user_logged_in) {
         return update_option('instant-articles-current-state', self::STATE_APP_SETUP);
     }
     return update_option('instant-articles-current-state', self::STATE_PAGE_SELECTION);
 }