我正在尝试使用restfb获取所有帖子,我的代码如下
public Connection<Post> publicSearchMessages(Date fromDate, Date toDate) {
Connection<Post> messages = publicFbClient.fetchConnection("search",
Post.class,
Parameter.with("q", "Watermelon"),
Parameter.with("since", fromDate),
Parameter.with("until", toDate),
Parameter.with("type", "post"));
return messages;
}
这仅提供最新的 25 条帖子消息。
Parameter.with("limit",100 )
如果我设置限制参数,它会提供 100 条消息,但我不想限制获取帖子消息。所以,
无论如何我可以在不设置限制参数的情况下获得与搜索条件匹配的完整帖子列表吗?