Android Facebook的回应给了用户一个';在贴墙时未授权应用程序

Android Facebook的回应给了用户一个';在贴墙时未授权应用程序,android,facebook,facebook-graph-api,Android,Facebook,Facebook Graph Api,我正在开发一个facebook登录注销的例子,这对我来说很好。我的问题是,当我在facebook墙上发布提要时,它会响应某种类型的错误。 我看到了很多帖子,但没有得到结果。谢谢 protected void PublishFedd() { Session s = Session.getActiveSession(); String testing="My testing app"; Request request = Request.newStatusUpdateRequ

我正在开发一个facebook登录注销的例子,这对我来说很好。我的问题是,当我在facebook墙上发布提要时,它会响应某种类型的错误。 我看到了很多帖子,但没有得到结果。谢谢

protected void PublishFedd() {
    Session s = Session.getActiveSession();
    String testing="My testing app";
    Request request = Request.newStatusUpdateRequest(s,testing, new Request.Callback()
        {
            @Override
            public void onCompleted(Response response)
            {
                String checkTask=sharedpreference.getString("TASK_NAME", null);
                Log.i(TAG,"ExistingTask:"+checkTask);
                Boolean isNetworkConnected=inetDetector.isInternetConnected();
                if(isNetworkConnected)
                {
                    Log.i(TAG,"ResponseError:"+response.getError());

                if (response.getError() == null)
                {
                    SharedPreferences.Editor edit=sharedpreference.edit();
                    //edit.putString("TASK_NAME", testing);
                    edit.commit();
                    Toast.makeText(FacebookMainActivity.this, "Status updated successfully", Toast.LENGTH_SHORT).show();
                }
                else
                {

                }
                }
                else
                {
                    Toast.makeText(FacebookMainActivity.this, "Network Connection Failure", Toast.LENGTH_SHORT).show();
                }
            }
        });
    request.executeAsync();

}
错误日志为:

ResponseError:{HttpStatus: 403, errorCode: 200, errorType: OAuthException, errorMessage: (#200) The user hasn't authorized the application to perform this action}

只需请求许可即可

String[] permissions = { "offline_access", "publish_stream", "user_photos", "publish_checkins","photo_upload" };
mFacebook.authorize(MainActivity.this, permissions,
            new LoginDialogListener());

我也面临着同样的问题任何想法都可以帮助我…你将在你的编码部分给予许可…看这个链接,它可能会帮助你在Facebook的主要活动中进行指导