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

getPost error when likes = TRUE #163

Open rayms opened 6 years ago

rayms commented 6 years ago

I am encountering the following error when attempting to reproduce the example code:

post <- getPost(post_id, token = fb_oauth, n = 1000, likes = TRUE, comments = FALSE)

Error in while (n.l < n.likes & length(content$data) > 0 & !is.null(url <- content$paging$`next`)) { : 
  argument is of length zero

Can you please advise?

luanamarinho commented 6 years ago

From what I could notice, n.l < n.likes & length(content$data) > 0 is returning FALSE. n.l=0 and length(content$data)=0 too.