统计并获取评论帖子的详细信息
我是几个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 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*"