2015-05-03 55 views
1

我想抓取我所有的Facebook時間軸帖子拋出facebook圖形API。
我正在玩Graph Explorer並有一個訪問令牌,具有以下權限:(user_posts,read_stream),但是當我在圖形api中調用端點「/ posts」或「/ feed」時,共享的雕像我(不是我創建的)在我的時間表上(我分享的朋友公共狀態)沒有返回。facebook圖表api不返回我共享的狀態

這是我的時間表截圖

有什麼想法嗎?

+0

截圖來自我的時間表:http://s21.postimg.org/pqikpvr0n/image.png – Aboelnour

+0

截圖來自graph-api響應http://s11.postimg.org/sf01tqojn/image.png 你會注意到我的時間軸上的(1&2)之間的帖子沒有在圖形api中返回 – Aboelnour

回答

0

如果你分享另一個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的評論在這裏,否則你應該提出一個錯誤,如果這不是意圖。