Refactor with fragments: Facebook login/logout in GalleryActivity.