通过使用以下代码,我尝试向应用添加publish_actions
权限。
if (state.name().equalsIgnoreCase("OPENED")) {
try {
Request request = Request.newStatusUpdateRequest(session,
"", new Request.Callback() {
@Override
public void onCompleted(Response response) {
List<String> permissions = session
.getPermissions();
Log.i(TAG,
"SessionStatusCallback -> CurrentPermissions "
+ permissions);
getUserInformation(session);
}
}
});
request.executeAsync();
但我的反应低于回应
{Response: responseCode: 403, graphObject: null, error: {HttpStatus: 403, errorCode: 200, errorType: OAuthException, errorMessage: (#200) The user hasn't authorized the application to perform this action}, isFromCache:false}
我可以获取用户信息,但无法添加权限并张贴墙。
请你帮忙解决这个问题。提前谢谢。
最好的问候