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

from_name now deprecated #168

Closed pooger closed 6 years ago

pooger commented 6 years ago

https://github.com/pablobarbera/Rfacebook/blob/173257eae1a9e3da23dc771a3ee2da324c9959ac/Rfacebook/R/getCommentReplies.R#L60

As of February 5th Facebook has deprecated the "from" field unless you're using a Page token for the page that user is commenting on: https://developers.facebook.com/docs/graph-api/reference/v2.10/comment image

This throws an "arguments imply differing number of rows: 0, 1" error when repliesToDF is called in Utils: https://github.com/pablobarbera/Rfacebook/blob/master/Rfacebook/R/utils.R#L164

pablobarbera commented 6 years ago

Thanks for opening this issue. The function should now return NA for these two fields whenever they are not returned by the API. I also added a note in the documentation to explain this change. (I decided not to remove them altogether to make sure the function is backwards compatible and because some users of the package may still have access through a Page token.)