pablobarbera / Rfacebook

Dev version of Rfacebook package: Access to Facebook API via R

Home Page:http://cran.r-project.org/web/packages/Rfacebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Politician's issue positions: Error in callAPI with reactions = TRUE (Object does not exist)

jogrue opened this issue · comments

Hi there,
for some reason I get an error for some posts when I enable "reactions = TRUE". Here is what I do:

load("data/fb_oauth.RData")
library(Rfacebook)
test <- Rfacebook::getPage("peterpilz", token = fb_oauth, n = 100)
test <- Rfacebook::getPage("peterpilz", token = fb_oauth, n = 100, reactions = TRUE)

I get this error if reactions are TRUE:

Error in callAPI(url = url, token = token, api = api) : 
  Unsupported get request. Object with ID '127399223970566_1540805859296555' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api

In this post a politician shared "issue positions" that is why it probably did not work. I do think it is this post:
https://www.facebook.com/peterpilz/posts/1540801592630315:14
In the timeline users can switch through the issues and like different issues, e.g.,
https://www.facebook.com/peterpilz/posts/1540801592630315:6

I also think this is the same issue: https://stackoverflow.com/questions/46403375/unsupported-get-request-with-rfacebook-only-on-particular-n