【问题标题】:facebook graph api doesn't return the statuses i sharedfacebook graph api 不返回我共享的状态
【发布时间】:2015-05-03 23:06:03
【问题描述】:

我正在尝试获取我所有的 Facebook 时间线帖子,抛出 facebook Graph API。
我正在使用Graph Explorer 并拥有一个具有此权限的访问令牌:(user_posts, read_stream) 但是当我在 graph-api 中调用端点“/posts”或“/feed”时,我的雕像 共享(不是我创建的)在我的时间线上(我共享的朋友公开状态)没有返回。

这是我的时间线截图

有什么想法吗?

【问题讨论】:

标签: facebook facebook-graph-api


【解决方案1】:

如果您分享另一个 POST - status,那么我认为没有一种方法可以显示在您的提要中。它将显示在最初共享它的用户的提要下,在postssharedposts

但如果您分享link,那么它将在您的供稿下显示为shared_story

来自我的提要的示例

{
  "data": [
    {
      "id": "XXXXXXXX", 
      "from": {
        "id": "XXXXXXXX", 
        "name": "XXXXXXXX"
      }, 
      "story": "Vrashabh Irde shared a link.", 
      "story_tags": {
        "0": [
          {
            "id": "XXXXXXXX", 
            "name": "XXXXXXXX", 
            "type": "user", 
            "offset": 0, 
            "length": 13
          }
        ]
      }, 
      "picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQAvV7MyLsxFjRDc&w=130&h=130&url=https%3A%2F%2Ftctechcrunch2011.files.wordpress.com%2F2015%2F05%2Fdave-goldberg.jpg%3Fw%3D560%26h%3D292%26crop%3D1&cfs=1&sx=1&sy=0&sw=292&sh=292", 
      "link": "http://tcrn.ch/1GR0HU3", 
      "name": "Dave Goldberg, SurveyMonkey CEO, Dies Unexpectedly", 
      "caption": "tcrn.ch", 
      "description": "Silicon Valley and the wider world of technology are mourning the very sudden death of Dave Goldberg, a long time entrepreneur and investor, CEO of..", 
      "icon": "https://www.facebook.com/images/icons/post.gif", 
      "actions": [
        {
          "name": "Comment", 
          "link": "https://www.facebook.com/XXXXXXXX/posts/XXXXXXXX"
        }, 
        {
          "name": "Like", 
          "link": "https://www.facebook.com/XXXXXXXX/posts/XXXXXXXX"
        }
      ], 
      "privacy": {
        "value": "ALL_FRIENDS", 
        "description": "Your friends", 
        "friends": "", 
        "allow": "", 
        "deny": ""
      }, 
      "type": "link", 
      "status_type": "shared_story", 
      "created_time": "2015-05-03T14:45:09+0000", 
      "updated_time": "2015-05-03T14:45:09+0000", 
      "is_hidden": false, 
      "subscribed": true
    }

这是据我所知,我没有看到任何其他说明的文档,很高兴有来自 Facebook 的人在这里发表评论,或者如果这不是故意的,你可能应该提出一个错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-09
    • 1970-01-01
    相关资源
    最近更新 更多