我试图在logcat中看到访问令牌,但它现在正在显示。为什么呢?
private void updateUI() {
Session session = Session.getActiveSession();
Log.i("access_token", session.getAccessToken());
if ( user != null) {
profilePictureView.setProfileId(user.getId());
greeting.setText(getString(R.string.hello_user, user.getFirstName()));
accessToken.setText(session.getAccessToken());
} else {
profilePictureView.setProfileId(null);
greeting.setText(null);
accessToken.setText(null);
}
}