2011-12-25 27 views
0

是否有任何方法可以爲用戶完成託管頁面的通知?使用圖形API獲取託管頁面的通知

對於一個用戶,我會平均觸發一個GET請求到/我/通知。我試過對受管理頁面(使用/ me/accounts提供的訪問令牌)進行相同操作,即觸發GET //通知?access_token =但我收到「Unsupported get request」錯誤消息,其中I猜測意味着通知連接不可用於頁面。

有沒有什麼辦法通過圖形來獲取?該網頁具有每個託管頁面的通知鏈接/快捷方式。

+0

消息被編輯... //通知=的access_token實際上應該是:??/ PAGEID /通知=的access_token pageToken –

回答

0

每圖形API資源管理器,在這裏你可以訪問該頁面的連接,可惜通知當前沒有他們的名單上:

albums 
events 
feed 
links 
notes 
photos 
posts 
questions 
statuses 
tagged 
videos 

但是,你可以嘗試FQL Q =

SELECT notification_id, sender_id, title_html, body_html, href 
FROM notification 
WHERE recipient_id=me() 

編輯

我用有效的網頁訪問令牌,並能找回數據....

{ 
    "data": [ 
    { 
     "notification_id": "nnnnnnnnnnnn", 
     "sender_id": nnnnnnnnn, 
     "title_html": "<a href=\"http://www.facebook.com/nnnnnnnnnn\">xxxxxxx</a> posted on <a href=\"http://www.facebook.com/pages/xxxxxxx/nnnnnnnnn">Beer</a>'s <a href=\"http://www.facebook.com/permalink.php?story_fbid=nnnnnnn&amp;id=nnnnnnn\">timeline</a>.", 
     "body_html": "", 
     "href": "http://www.facebook.com/permalink.php?story_fbid=nnnnnnn&id=nnnnnnnn" 
    } 
    ] 
} 
+0

我試着FQL已經和它不能工作,不幸的是 –

+0

你是什麼意思,沒有工作?你的意思是沒有找到你的收件人ID?您的通知未找到? FQL錯誤? – DMCS

+0

我得到一個錯誤,指出訪問令牌只能與Graph API一起使用,而不是FQL –

相關問題