2011-02-07 35 views
3

我想寫一個程序,它從facebook上檢索我自己的帖子和評論 - 我能夠登錄和檢索有關「我」的信息,但我不知道如何獲得我寫的帖子。我發現圖形API文檔非常混亂。Facebook圖形API:我如何檢索自己的帖子?

我使用的是C#/ WPF組件,它讓我使用檢索有關我的信息:

fbApp.GetAsync("me", (val) => 
    { 
    var result = (IDictionary<string, object>)val.Result; 
    Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, 
         new Action(delegate() { InfoBox.ItemsSource = result; })); 
    }); 

使用該圖形API,我可以取回我的文章和/或評論?

回答

0

您只需通過一個GET請求檢索您收取到

http://graph.facebook.com/me/feed 

徵求意見

http://graph.facebook.com/[post-id]/comments 
+0

我試過,但我只是得到一個空的結果集(這不可能是正確的,我已經發布了很多東西)。我似乎錯過了什麼? – Sam 2011-02-07 11:06:10

相關問題