I have integrated latest Facebook android sdk (Sdk 4.0). This is the code I have added in my onCreate method.
FacebookSdk.sdkInitialize(this.getApplication
You can also add an InitializeCallback to the sdkInitialize and check the AccessToken inside the callback:
FacebookSdk.sdkInitialize(getApplicationContext(), new FacebookSdk.InitializeCallback() {
@Override
public void onInitialized() {
if(AccessToken.getCurrentAccessToken() == null){
System.out.println("not logged in yet");
} else {
System.out.println("Logged in");
}
}
});