我使用Facebook SDK 4.0,我的场景是:

  • 使用权限登录用户到Facebook:"public_profile, user_friends, email"
    出现

  • 授权对话框,然后单击允许 .

  • 登录成功后,我尝试申请新的权限:"publish_actions" .

  • 对话框显示为:"You are already authorized"

我实现的代码是:

登录:

LoginManager.getInstance().logInWithReadPermissions(DashboardActivity.this,
                Arrays.asList(FacebookUtils.FACEBOOK_READ_PERMISSION));

监听器:

callbackManager = CallbackManager.Factory.create();

        LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
            @Override
            public void onSuccess(LoginResult loginResult) {
                if (chototProfile != null && !TextUtils.isEmpty(chototProfile.getAccountId())) {
                    connectFB(loginResult.getAccessToken().getToken());
                }
                LoginManager.getInstance().logInWithPublishPermissions(DashboardActivity.this,
                Arrays.asList(FacebookUtils.FACEBOOK_PUBLISH_PERMISSION));//Request new permission.
            }

            @Override
            public void onCancel() {
                if (chototProfile != null && !TextUtils.isEmpty(chototProfile.getAccountId())
                        && AccessToken.getCurrentAccessToken() != null) {
                    connectFB(AccessToken.getCurrentAccessToken().getToken());
                }
            }

            @Override
            public void onError(FacebookException error) {
                Log.e(error);
            }
        });

Question Why it happen and How I can fix it?