[英]Retrieving more post from public fb page using FB graph api
As i have tried getting the post from a public facebook page, by passing access token, however i can only retrieve the latest 25 post. 正如我尝试从公共Facebook页面获取帖子,通过传递访问令牌,但我只能检索最新的25个帖子。 Can i increase number number of post returned?
我可以增加退回的号码吗? or can i retrieve post based on dates i want.
或者我可以根据我想要的日期检索帖子。 If possible, can someone guide me how to do so?
如果可能的话,有人可以指导我怎么做吗?
what i have now: 我现在拥有的:
static JsonObject GetPost(string accessToken)
{
FacebookClient facebookClient = new FacebookClient(accessToken);
JsonObject pagePost = facebookClient.Get("/pageName/posts") as JsonObject;
return pagePost;
}
Have you tried using the pagination links in the API response? 您是否尝试过使用API响应中的分页链接? perhaps your SDK wraps those, but there should be a way to get the next page - you could also just ask for more in the initial request (eg
facebookClient.Get("/pageName/posts?limit=100")
) 也许你的SDK包装了那些,但应该有办法获得下一页 - 你也可以在初始请求中要求更多(例如
facebookClient.Get("/pageName/posts?limit=100")
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.