[英]How to get group posts and their comments from Workplace Graph API in a single request?
I know I can get all the posts in a group using the Graph API endpoint /group-id/feed
. 我知道我可以使用Graph API端点
/group-id/feed
获取组中的所有帖子。 And I know I can get all the comments of a single post too. 而且我知道我也可以获取单个帖子的所有评论。 But I want to know if it's possible to get the comments of each posts in a group in a single request.
但是我想知道是否有可能在单个请求中获得组中每个帖子的评论。
Ideally, I would want something like "get the latest 10 posts of a group with their comments" in a single request. 理想情况下,我希望在单个请求中提供“获得一组最新的10条帖子及其评论”。
Couldn't find anything in the docs so it's probably not possible. 在文档中找不到任何内容,因此可能无法实现。
you can use the fields parameter 您可以使用fields参数
/group-id/feed?fields=message,comments /组ID /喂?字段=消息,注释
in this way you are able to retrieve the message of the post and all the comments related to it 这样,您就可以检索该帖子的消息以及与之相关的所有评论
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.