Android 不使用Graph Api获取任何事件
使用此代码获取事件:-Android 不使用Graph Api获取任何事件,android,facebook,sdk,facebook-graph-api-v2.0,Android,Facebook,Sdk,Facebook Graph Api V2.0,使用此代码获取事件:- 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());
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();
}
});
许可:---
它给了我一个错误:----
错误消息对此进行了解释 (#803)您请求的某些别名不存在:{event id}
应该有一个实际的事件ID,或者至少有一个变量保存事件ID的值。我们可以获得在特定位置保存的所有事件的列表吗?
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}
new Request(session,"/{event-id}",null,HttpMethod.GET,new Request.Callback()