Java RestFb-对于事件,description和多个其他字段为空
这是我的密码Java RestFb-对于事件,description和多个其他字段为空,java,facebook,restfb,Java,Facebook,Restfb,这是我的密码 public class RestFbTest { public static void main(String[] args) { FacebookClient facebookClient = new DefaultFacebookClient(ACCESS_TOKEN); Connection<Event> search = facebookClient.fetchConnection("search", Event.class, Pa
public class RestFbTest {
public static void main(String[] args) {
FacebookClient facebookClient = new DefaultFacebookClient(ACCESS_TOKEN);
Connection<Event> search = facebookClient.fetchConnection("search", Event.class, Parameter.with("q", "Bengaluru"), Parameter.with("type", "event"));
int c=0;
for (List<Event> searchList : search) {
for (Event event : searchList) {
System.out.println("Event: " + event);
}
}
}
}
公共类RestFbTest{
公共静态void main(字符串[]args){
FacebookClient FacebookClient=新的默认FacebookClient(访问令牌);
连接搜索=facebookClient.fetchConnection(“搜索”,Event.class,Parameter.with(“q”,“Bengaluru”),Parameter.with(“类型”,“事件”);
int c=0;
对于(列表搜索列表:搜索){
for(事件:搜索列表){
System.out.println(“事件:+Event”);
}
}
}
}
事件Id显示在列表中。
例如,这是第一个事件ID:149517752101309
列表中对此的描述为空。
但在网上我可以看到描述
我的访问令牌具有以下作用域:用户\u事件、公共\u配置文件
为什么restFb没有捕获描述?只是用代码检查了一下,我看到了描述。我甚至没有使用任何特殊许可,这很奇怪。无论如何,我已经编写了自己的函数来获取数据。你能提供你的函数吗?如何检查是否为空?我也面临同样的问题。