简体   繁体   English

如何在单个请求中从Workplace Graph API获取组帖子及其评论?

[英]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.

相关问题 如何从Facebook Workplace Graph API中的Conversation中的线程获取消息 - How to get the messages from threads within Conversation from Facebook Workplace Graph API 如何使用facebook api从一个团体获得销售帖子 - How to get for sale posts from a group using facebook api 无法使用图形API显示来自组的注释 - Cant display comments from a group using graph api 是否可以使用图形 api 从 facebook 组中获取销售帖子 - Is it possible to fetch sale posts from facebook group using graph api 谁从使用Facebook API的帖子组中获得评论 - Who get comments from post group with Facebook API Wordpress API json,如何在单篇文章中获取上一篇和下一篇文章? - Wordpress API json, how to get prev and next posts in single post? 如何通过一次调用从Facebook图形API获取给定URL的图像URL - How to get an image url from Facebook graph API for a given URL in a single call 如何在Android中使用Graph API获取喜欢我的Facebook帖子的人的数据 - How to get data of people who likes my facebook posts using Graph API in android 如何使用 facebook graph api 获取某个用户最近喜欢的所有帖子? - How do I get all the posts that a certain user has liked recently with facebook graph api? Facebook忽略Graph API页面发帖连接-忽略回复和评论? 故事与讯息 - Facebook Ignore Graph API Page Posts Connection - Ignore Replies & Comments? Story vs Message
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM