Reputation: 499
Through the following code I would like to get the impressions and other page insights in R:
library(Rfacebook)
library(RCurl)
fb_oauth <- fbOAuth(app_id="1967490963528780", app_secret="APP SECRET from
https://developers.facebook.com/apps/myapp ",extended_permissions = TRUE)
insights <- getInsights(object_id="164028473612550", token=fb_oauth,
metric='page_impressions')
I am owner of the page, however I get the following error:
Error in FUN(X[[i]], ...) :
No data available. Are you the owner of this page? See ?getInsights.
Does anyone know how to acces page insights through R?
Upvotes: 1
Views: 85