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 differing number of rows: 0, 1 #171

Open seuriously opened 6 years ago

seuriously commented 6 years ago

Hi,

I've been facing this error while running getPost:

getPost(me_page_i$id[1], token = fb_oauth)
Error in data.frame(from_id = json$from$id, from_name = json$from$name,  : 
  arguments imply differing number of rows: 0, 1

I've been noticing the pattern why its happen. If number of comments is quite large (>20'ish) there would be no error. Else, it would throw above error.

jasonobrero commented 6 years ago

image RStudio traceback contains the following.

ashgreat commented 6 years ago

I get this error even when the number of comments is large. As these fields are anyway NA in the new API, perhaps it's better to drop them altogether.

Error in data.frame(from_id = json$from$id, from_name = json$from$name, : arguments imply differing number of rows: 0, 1

honeygupta94 commented 6 years ago

I faced this error when I try to extract comments of Community Posts on a public page. Since the from id and name are NA , functions seems to throw an error