Facebook Graph API 返回具有多个评论/喜欢但创建时间和时间相同的帖子更新时间

发布于 2024-12-11 08:42:21 字数 921 浏览 0 评论 0原文

我正在使用 Graph API 使用此类 URL 从 Facebook 页面检索帖子 https://graph.facebook.com/[PageId]/posts?access_token=[access token]

这会返回许多帖子,例如:

{
   "data": [
    {
         ...
         "type": "link",
         "created_time": "2011-10-21T15:24:19+0000",
         "updated_time": "2011-10-21T15:24:19+0000",
         "likes": {
            "...
            "count": 7
         },
         "comments": {
            "count": 39
         }
      },

      {
         ...
         "type": "status",
         "created_time": "2011-10-18T15:31:22+0000",
         "updated_time": "2011-10-18T15:31:22+0000",
         "likes": {
            ...
            "count": 15
         },
         "comments": {
            "count": 67
         }
      },

      ...
   ],
   ...   
}

对于返回的每个帖子,created_time 和 Updated_time 彼此相同,即使该帖子附有一些评论和点赞!这是一个错误吗?帖子的 Updated_time 不应该显示帖子附加的最后评论/点赞/等的时间吗?

谢谢。

I am using Graph API to retrieve posts from a Facebook Page using this type of URL
https://graph.facebook.com/[PageId]/posts?access_token=[access token]

This returns a number of posts such as:

{
   "data": [
    {
         ...
         "type": "link",
         "created_time": "2011-10-21T15:24:19+0000",
         "updated_time": "2011-10-21T15:24:19+0000",
         "likes": {
            "...
            "count": 7
         },
         "comments": {
            "count": 39
         }
      },

      {
         ...
         "type": "status",
         "created_time": "2011-10-18T15:31:22+0000",
         "updated_time": "2011-10-18T15:31:22+0000",
         "likes": {
            ...
            "count": 15
         },
         "comments": {
            "count": 67
         }
      },

      ...
   ],
   ...   
}

For every post that is returned the created_time and updated_time are identical to each other even if the post has several comments and likes attached to it! Is this a bug? Shouldn’t the updated_time of a post show the time of last comment/like/etc attached to the post?

Thank you.

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

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

发布评论

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

评论(2

冷情 2024-12-18 08:42:21

好吧,经过更多搜索后,我发现这是一个错误,但只有当帖子超过 30 条评论时才会出现!

请参阅此处:当帖子获得超过 30 条评论时,更新时间将重置为created_time

Ok, after some more search I found out that this is a bug but only occurs if a post has more than 30 comments!

Please see here: updated time gets reset to created_time when a post gets more than 30 comments

-黛色若梦 2024-12-18 08:42:21

同样奇怪的是,如果您有一个包含过去创建的未来事件的页面提要,则创建和更新的时间是未来的,就像事件日期一样......

Also weird that if you have a page-feed with events in the future which were created in the past, the created and updated times are in the future, like the event dates....

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