统计并获取评论帖子的详细信息

发布于 2024-12-25 07:12:50 字数 220 浏览 7 评论 0原文

我是几个 Facebook 页面的管理员。
每次我以管理员身份发布消息(页面本身)时,我都会计算该帖子的点赞和评论数量,以及哪个用户这样做并将数据保存到我的数据库中。 可以这样做吗?
请注意,这不是评论插件,而是页面帖子。

I'm an admin of a few facebook pages.
Every time I post a message as the admin (the page itself), I'd like to count the number of likes and comments on that post and, which user did so and save the data to my db.
Is it possible to do that?
Please notice that it's not the comments plugin, but the page posts.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

川水往事 2025-01-01 07:12:50

在 Graph API 上执行 HTTP Get /me/feed 以使用 PAGE 访问令牌获取提要项目列表。

每个提要项目都将具有 likes 属性“包含数据对象和总喜欢计数的结构,其中数据包含对象数组,每个对象都包含喜欢的用户的姓名和 Facebook ID帖子

每个提要项目还将有一个 comments 属性“*包含一个数据对象的结构,该数据对象包含一个对象数组,每个对象都包含每个评论的 id、from、message 和created_time *”

Do a HTTP Get /me/feed on the Graph API to get a list of feed items using a PAGE access token.

Each feed item will have likes property "Structure containing a data object and the count of total likes, with data containing an array of objects, each with the name and Facebook id of the user who liked the post"

Each feed item will also have a comments property "*Structure containing a data object containing an array of objects, each with the id, from, message, and created_time for each comment*"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文