I implemented the sample hello facebook and I m confused on some points.
First when I test the app in real device from Android Studio, the post update button is already enabled (possibly) from facebook app which is already logged in
When I login normally by pressing my app's facebook login button, profile picture and name shows up. BUT why when I logout the Share button is still enabled?
private void updateUI() {
boolean enableButtons = AccessToken.getCurrentAccessToken() != null;
postStatusUpdateButton.setEnabled(enableButtons || canPresentShareDialog);
Profile profile = Profile.getCurrentProfile();
if (enableButtons && profile != null) {
profilePictureView.setProfileId(profile.getId());
greeting.setText(getString(R.string.hello_user, profile.getLastName()));
} else {
Shall I put here postStatusUpdateButton.setEnabled(false);
profilePictureView.setProfileId(null);
greeting.setText(null);
}
}