且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不调用每个帖子的评论对象的情况下从墙上的帖子中获取评论计数?

更新时间:2023-01-19 18:33:47

在任何地方都没有记录,甚至没有子字段或限制,我在开发人员论坛中发现了这个问题.此调用以自定义格式提取PageID/帖子.就我而言,这是如何在一次通话中获得点赞"计数,分享"计数和评论"计数.

It is not documented anywhere, even subfields or limits, I've found this asking in developers forum. this call pull PageID/posts with custom format. In my case here is how to pull Likes count, shares count and comments count in one call.

PageID/posts?fields=comments.limit(1).summary(true),likes.limit(1).summary(true),shares

我不太确定您是否必须标记同意10月api更改才能获得自定义格式.

I'm not really sure if you have to mark agreed the October api changes in order to get your custom format.

希望这项工作对您有帮助...

hope this work for you...