1

当使用/me/feed获取我的提要时,似乎我墙上其他用户的帖子的第一条评论在提要中再次表示为独立的状态条目(也有不同的 id)本身。

它看起来像以下 JSON 输出。列表的第一个条目显然是从列表的第二个条目的第一个注释生成的。

我无法重现该问题,我评论过的墙上的另一篇文章结果正常(= 第一条评论没有重复条目)

这是 Facebook 本身的错误还是有人可以解释这种行为?

[
{
  "id": "someID_4300357461829", 
  "from": {
    "name": "user1", 
    "id": "someID"
  }, 
  "story": "\"na oida\" on user2's post on your wall.", 
  "story_tags": {
    "13": [
      {
        "id": "someID2", 
        "name": "user2", 
        "offset": 13, 
        "length": 15, 
        "type": "user"
      }
    ]
  }, 
  "type": "status", 
  "created_time": "2012-11-03T01:41:15+0000", 
  "updated_time": "2012-11-03T01:41:15+0000", 
  "comments": {
    "count": 0
  }
}, 
{
  "id": "someID_4300356661809", 
  "from": {
    "name": "user2", 
    "id": "someID2"
  }, 
  "to": {
    "data": [
      {
        "name": "user1", 
        "id": "someID"
      }
    ]
  }, 
  "message": "hi!", 
  "actions": [
    {
      "name": "Comment", 
      "link": "https://www.facebook.com/someID/posts/4300356661809"
    }, 
    {
      "name": "Like", 
      "link": "https://www.facebook.com/someID/posts/4300356661809"
    }
  ], 
  "type": "status", 
  "created_time": "2012-11-03T01:40:54+0000", 
  "updated_time": "2012-11-03T01:45:21+0000", 
  "comments": {
    "data": [
      {
        "id": "someID_4300356661809_4479943", 
        "from": {
          "name": "user1", 
          "id": "someID"
        }, 
        "message": "na oida", 
        "created_time": "2012-11-03T01:41:15+0000"
      }, 
      {
        "id": "someID_4300356661809_4479949", 
        "from": {
          "name": "user1", 
          "id": "someID"
        }, 
        "message": "interesting", 
        "created_time": "2012-11-03T01:42:31+0000"
      }, 
      {
        "id": "someID_4300356661809_4479956", 
        "from": {
          "name": "user1", 
          "id": "someID"
        }, 
        "message": "another one", 
        "created_time": "2012-11-03T01:44:40+0000"
      }, 
      {
        "id": "someID_4300356661809_4479959", 
        "from": {
          "name": "user2", 
          "id": "someID3"
        }, 
        "message": "spam", 
        "created_time": "2012-11-03T01:45:21+0000"
      }
    ], 
    "count": 4
  }
}
]
4

2 回答 2

0

以防万一您没有意识到,那些“错误”的帖子中没有任何动作,因此您可以过滤正确的帖子,只检查是否存在动作。

于 2014-02-04T18:01:14.987 回答
0

我有同样的问题。我已经向 facebook 提交了一个错误。投票 - https://developers.facebook.com/bugs/483624361705934

于 2013-05-21T13:00:26.610 回答