pablobarbera / Rfacebook

Dev version of Rfacebook package: Access to Facebook API via R
http://cran.r-project.org/web/packages/Rfacebook
350 stars 250 forks source link

Retrieve comments for multiple Posts #122

Closed rayms closed 7 years ago

rayms commented 7 years ago

I am using getPost to retrieve comments for posts, but is there anyway to do so for all posts?

The example provided is:

getPost(post=page$id[#], token, n = 500, comments = TRUE), where # is the specific id of the Post.

Is there anyway to retrieve comments for all Posts without having to iterate through each id of a Post.

pablobarbera commented 7 years ago

@rayms Unfortunately, not with the current version of Rfacebook. You could try building your own API call and use callAPI() but I would recommend against it, because generally it will be too much data for a single call.