0

我正在执行 FQL 查询以获取用户的帖子:

{
  "feeds": "SELECT type, actor_id, target_id, app_data, action_links, permalink, post_id, viewer_id, created_time, updated_time, source_id, message, description, attachment FROM stream WHERE filter_key = 'owner' AND source_id = <userId> AND is_hidden = 0 LIMIT 50"
}

在大多数情况下,结果很好。但是,如果结果包含有关用户“喜欢”某物的帖子,我如何确定“喜欢”了什么?

例如:

{
      "type": null, 
      "actor_id": <userId>, 
      "target_id": null, 
      "app_data": [
      ], 
      "action_links": null, 
      "permalink": "", 
      "post_id": "<postId>", 
      "viewer_id": <userId>, 
      "created_time": 1369109320, 
      "updated_time": 1369109320, 
      "source_id": <userId>, 
      "message": "", 
      "description": "<user name> likes a status.", 
      "attachment": {
        "description": ""
      }
    }

哪个状态?

或者:

{
      "type": null, 
      "actor_id": <userId>, 
      "target_id": null, 
      "app_data": [
      ], 
      "action_links": null, 
      "permalink": "", 
      "post_id": "<postId>", 
      "viewer_id": <userId>, 
      "created_time": 1367029922, 
      "updated_time": 1367029922, 
      "source_id": <userId>, 
      "message": "", 
      "description": "<user name> likes a link.", 
      "attachment": {
        "description": ""
      }
    }

哪个链接?

我是否需要进行多部分查询才能从不同的表中获取额外的数据?为什么 target_id 总是为空?

4

1 回答 1

1

这是一个长期存在的错误,由于未知原因尚未修复 https://developers.facebook.com/bugs/522743067756848

在 API 中实际上没有有效的方法来做到这一点。

<postId> = <userid_pId>

通过 Facebook UI 的方式是https://www.facebook.com/userid/posts/pId

我已经打开了一个新的错误报告,但我非常怀疑它会被修复。

https://developers.facebook.com/bugs/648986871793611

于 2013-06-02T15:24:28.417 回答