使用此代码获取事件:-
new Request(session,"/{event-id}",null,HttpMethod.GET,new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
System.out.println("Result: " + response.toString());
}
}).executeAsync();
}
});许可:
authButton.setReadPermissions(Arrays.asList("user_location", "user_birthday", "user_likes","user_events","read_stream"));这给了我一个错误:
I/System.out﹕ Result: {Response: responseCode: 404, graphObject: null, error: {HttpStatus: 404, errorCode: 803, errorType: OAuthException, errorMessage: (#803) Some of the aliases you requested do not exist: {event-id}}, isFromCache:false}发布于 2015-02-20 11:10:11
错误信息解释了它。
(#803)您请求的一些别名不存在:{event}
new Request(session,"/{event-id}",null,HttpMethod.GET,new Request.Callback() 应该有一个实际的事件ID,或者至少有一个保存事件ID值的变量。
https://stackoverflow.com/questions/28627279
复制相似问题