【问题标题】:Facebook Graph API returns posts having multiple comments/likes but identical created_time & updated_timeFacebook Graph API 返回具有多个评论/喜欢但相同 created_time 和 updated_time 的帖子
【发布时间】:2011-12-14 04:49:18
【问题描述】:

我正在使用 Graph API 使用这种类型的 URL 从 Facebook 页面检索帖子 https://graph.facebook.com/[PageId]/posts?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 彼此相同,即使帖子附有多个 cmets 和 likes!这是一个错误吗?帖子的更新时间不应该显示最后评论/喜欢/等附加到帖子的时间吗?

谢谢。

【问题讨论】:

    标签: facebook-graph-api


    【解决方案1】:

    好的,经过更多搜索后,我发现这是一个错误,但只有在帖子超过 30 cmets 时才会出现!

    请看这里:updated time gets reset to created_time when a post gets more than 30 comments

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-07
        • 2015-01-01
        相关资源
        最近更新 更多