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() throws error #185

Open kevineers opened 6 years ago

kevineers commented 6 years ago

The getPost() function responds with an error:

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

Is it due to the same reason as this issue (https://github.com/pablobarbera/Rfacebook/issues/168), where Facebook is not returning the from_id and from_name fields due to the API update?

If so, could the method "postDataToDF" in utils.R be updated to include the ifelse used in replyDataToDF: from_id = ifelse(!is.null(json$from$id), json$from$id, NA), from_name = ifelse(!is.null(json$from$name), json$from$name, NA),

giacomofrisoni commented 5 years ago

I have the same big problem