New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in content$data[[1]] : subscript out of bounds in getInsights #25
Comments
Just to echo @theclue thank you for all of your work! Currently, I'm having the same issues when trying to query getInsights. Example: The package does work for getUsers and getPage, which is how I found my page's id. I'm not sure if you have any ideas what could be causing this? Thanks, Chip |
Like @theclue, I get the same subscript out of bounds error for getInsights(). I am trying to query this information for a page I was given access to, and by using the Graph API Explorer from developers.facebook.com, I was able to confirm that I do have authority to query this information. I actually get two different errors based on whether I try post_impressions or page_impressions, and this might just be due to stupid user error, but like @theclue I have tried different parameters and cannot get the function to work.
|
Rfacebook is a great package! I'm loving playing around with it. I am having the same problem as @lbollar with getInsights() Has anyone had any luck yet? |
I also have the same problem like you guys. I also tried to debug this by If I skip this and the following several lines about l Maybe "No public posts mentioning the string were found" is exactly what I should get for this input? And the error says |
You will only be able to use @shenjunfei yes, the error is thrown because
|
I'm an administrator for the page that I'm concerned with, but getInsights() doesn't work for me, either. I can't figure out what the problem is. |
I fixed getInsights and everything should work now. (Sorry it took so long -- I didn't have access to a FB page with insights activated, so I had to create it first to see where the error was.) |
Hello Pablo,
first of all, tnx for your work..this package is really a lifeboat, to me!
Said that, I must say that I'm not able to make getInsights working. Whatever parameters I put, I always get this error: Error in content$data[[1]] : subscript out of bounds
Some examples ->
From a page I own:
circle <- getInsights(object_id="9thcirclegames", token = fb.connection, metric = "page_impressions")
circle <- getInsights("me", token = fb.connection, metric = "page_impressions")
A post by me (not the page):
example_post <- circle <- getInsights(object_id="10152670074275267_10152659686895267", token = fb.connection, metric = "post_impressions", period='days_28')
perhaps I'm using the function in the wrong way?
The text was updated successfully, but these errors were encountered: