2012-05-12 40 views

回答

0

它的圖形API中容易獲得(我會檢查它是否在FQL)

基本上,無論哪種方式,你需要從用戶請求user_actions.reads許可。 (注:不是user_actions:reads這將是一個應用程序的名稱空間是'讀',爲新聞,音樂和視頻應用程序使用內置的行動有一個特殊的範圍)

然後,對於圖形API,只需來電/USER_ID/news.reads - 響應包括最近閱讀使用內置的所有應用程序的文章「讀」的行動,例如響應我的帳戶下面:

{ 
    "data": [ 
    { 
     "id": "REMOVED_ID", 
     "from": { 
     "id": "REMOVED_MY_USER_ID", 
     "name": "REMOVED_MY_NAME" 
     }, 
     "start_time": "2012-05-10T00:05:10+0000", 
     "end_time": "2012-05-10T00:05:10+0000", 
     "publish_time": "2012-05-10T00:05:10+0000", 
     "application": { 
     "id": "235586169789578", 
     "name": "The Independent" 
     }, 
     "data": { 
     "article": { 
      "id": "10150697347986736", 
      "url": "http://www.independent.co.uk/life-style/food-and-drink/features/the-10-best-scotch-whiskies-1488408.html", 
      "type": "article", 
      "title": "The 10 Best Scotch Whiskies" 
     } 
     }, 
     "likes": { 
     "count": 0 
     }, 
     "comments": { 
     "count": 0 
     } 
    }, 
.... //more articles 
+0

我怎麼要求user_actions.reads權限?我沒有看到請求訪問令牌對話框中的這個選項。我運行了你在帖子中建議的命令,並且我得到了以下輸出:「data」:[ ], 「paging」:{ 「next」:「https://graph.facebook.com/ /news.reads?format = json&offset = 25&limit = 25「 } } – theHawkeye

+0

當我點擊上述響應生成的鏈接時,我得到一個auth錯誤{ 」error「:{ 」message「:」 「, 」type「:」OAuthException「, 」code「:104 } } – theHawkeye

+0

如果您使用的是圖形瀏覽器,只有基本權限供您選擇,您需要手工製作o auth對話框添加user_actions。[something]或user_actions:[something] 圖形瀏覽器中的'next'鏈接不會將令牌複製到新窗口 – Igy

相關問題