开发者

Facebook Graph API: how do I retrieve my own posts?

开发者 https://www.devze.com 2023-02-08 19:19 出处:网络
I\'m trying to write a program which retrieves my own posts and comments from facebook - I\'m able to login and retrieve information about \"me\", but I got no idea how to get the posts I\'ve written.

I'm trying to write a program which retrieves my own posts and comments from facebook - I'm able to login and retrieve information about "me", but I got no idea how to get the posts I've written. I find the graph API documentation very confusing.

I'm using a c#/WPF assembly which lets me retrieve the information about me usin开发者_StackOverflow中文版g:

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

Using which graph API I can retrieve my own posts and/or comments?


You simply retrieve your Feeds by a GET Request to

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

for comments

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

精彩评论

暂无评论...
验证码 换一张
取 消