bobolounna / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

fetching comments from newsfeed #182

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Is there any way to fetch comments from a users newsfeed?
I can fetch posts with the following code:

facebookClient.fetchConnection(profile.getComChannel().getChannelId() +"/home", 
Post.class, paramsList.toArray(new Parameter[0])).getData();

This retrieves the Posts in the feed (though not accurate as the facebook 
disclaimer also states) and fetches some of the comments on a post, but not all 
of them. From my understanding it fetches only the visible ones, i.e. <= 3 
comments.

Is there any alternative way to fetch all comments in a users feed?

Kind Regards,
Manos

Original issue reported on code.google.com by mtsaha...@gmail.com on 4 Apr 2012 at 12:21

GoogleCodeExporter commented 8 years ago
This one might be a better question for the Group, since it's not really a 
RestFB bug (at least it doesn't sound like it).  One workaround might be to 
iterate over each post in the feed and fetch the POST_ID/comments connection - 
this is all off the top of my head, but maybe it will work.  So instead of 
doing 1 FB request you unfortunately have to do N+1, where N is the number of 
elements in the feed.

I'm going to close this one out as a nonbug - again, feel free to post this in 
the Google Group.  Thanks!

Original comment by m...@xmog.com on 5 Apr 2012 at 1:49