Android Facebook - NULL Profil erhalten

Zum ersten Mal mit Facebook SDK. Ich kann kein Benutzerprofil erstellen. Es ist immer null. Was ist los

btnFbWidget = (LoginButton) findViewById(R.id.btnFbWidget);
btnFbWidget.setReadPermissions("public_profile");
// Callback registration
btnFbWidget.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
    @Override
    public void onSuccess(LoginResult loginResult) {
        Profile profile = Profile.getCurrentProfile();
        if (profile != null)
            Toast.makeText(getApplicationContext(), "LogIN as " + profile.getName(), Toast.LENGTH_SHORT).show();
        else 
            Toast.makeText(getApplicationContext(), "nulll", Toast.LENGTH_SHORT).show();
    }
                /*...*/
});

Antworten auf die Frage(4)

Ihre Antwort auf die Frage