我已经从 myapp 成功登录到 facebook 并获得了 accesstoken,但是当我在墙上发布消息时,我得到了以下异常。
{"error":{"message":"(#10) Application does not have permission for this action","type":"OAuthException","code":10}}
代码是:
Bundle parameters = new Bundle();
parameters.putString("message", "hello ...");
parameters.putString(Facebook.TOKEN, mFacebook.getAccessToken());
try {
String response = mFacebook.request("me/feed", parameters,"POST");
} catch (IOException e)
{}