我试图在朋友墙上发帖,但发生错误,没有消息发布到朋友墙上。下面是我的墙上发帖代码
final Bundle params = new Bundle();
params.putByteArray("message", "testing".getBytes());
params.putByteArray("name", "cccc".getBytes());
params.putByteArray("link", "http://www.youtube.com".getBytes());
params.putByteArray("description", " ...".getBytes());
params.putByteArray("picture", "".getBytes());
final Request postToWall = Request.newRestRequest(Session.getActiveSession(), fbid + "/feed", params, HttpMethod.POST);
postToWall.setCallback( new Request.Callback()
{
@Override
public void onCompleted(Response response)
{
Log.i("", response.toString());
}
});
Request.executeBatchAsync(postToWall);
} });
日志错误: {Response: responseCode: 200, graphObject: null, error: {HttpStatus: 200, errorCode: 3, errorType: null, errorMessage: Unknown method}, isFromCache:false}
如果有人知道为什么会出现这个问题,请告诉我解决方案。