Questions tagged [rfacebook]

Use this tag for question about using rfacebook - R package to access Facebook's API

rfacebook - R package allow to access Facebook's API

to get information about public pages, groups, and posts, as well as some of the authenticated user's private data.

Github: https://github.com/pablobarbera/Rfacebook

33 questions
11
votes
3 answers

To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook

As you can see in the screenshot above, I got Facebook app review approval but now I tried to access Facebook public page posts and comments per page. Still, I am getting bellow massage in R Console: Error in callAPI(url = url, token = token, api =…
6
votes
2 answers

How to use map() with possibly()

I am using map() to get post data from Facebook using the following code: posts_data <- map(posts$query_id, getPost, token = fb_oauth, n = 1000) However, some of the query_id observations are incorrect, or are shared events, which the API cannot…
mundos
  • 459
  • 6
  • 14
5
votes
0 answers

I am having 'browser' must be a non-empty character string Error while authenticating with fbOAuth

my_oauth <- fbOAuth(app_id="", app_secret="") Copy and paste into Site URL on Facebook App Settings: http://localhost:1410/ When done, press any key to continue... Waiting for authentication in browser... Press Esc/Ctrl + C to abort Error in…
Arvind patel
  • 51
  • 1
  • 2
5
votes
1 answer

Splitting organic and paid impressions in facebook api using R

I am using the Rfacebook package to retreive total impressions a facebookpost had. This works fine, however, this method does not split paid and organic impressions. I use the following code: getInsights(object_id="post_id", token= token,…
nemja
  • 459
  • 4
  • 19
3
votes
0 answers

Can't get a post with too many comments using Rfacebook library

I am receiveing an error message when I try to get a post with too many comments (or maybe likes) using Rfacebook library. It works just fine in post with less comments tough. Is it a problem in Rfacebook library or is it a restriction from facebook…
2
votes
1 answer

Scraping Comment replies with Rfacebook

I am using the Rfacebook package to scrape a List of public pages that are of interest for my research question. The authentification works properly and I can get dataframes of all public posts, reactions towards the posts and comments made on these…
Ju Ko
  • 466
  • 7
  • 22
1
vote
0 answers

Rfacebook searchPages returns 0 results

I'm trying to do some textmining with Rfacebook, but whenever I enter code for finding pages which include a string: searchPages("facebook", token = fb_oauth, n = 10000) I get back this error: 0 pages Error in searchPages("facebook", token =…
Sage Wyatt
  • 41
  • 5
1
vote
1 answer

Issue in Facebook Replies download from post comments

I am trying to download public comments and replies from the FACEBOOK public post by page. my code is working until 5 Feb'18, Now it is showing below error for the "Replies". Error in data.frame(from_id = json$from$id, from_name = json$from$name, :…
sanjay saini
  • 111
  • 2
  • 2
  • 6
1
vote
1 answer

Error in Rfacebook getPost - Argument has length 0

Whenever i'm trying to get a post with a lot of comments from Facebook with Rfacebook's getPost-function, i get the following error: Error in while (n.l < n.likes & length(content$data) > 0 & !is.null(url <- content$paging$`next`)) { : Argument…
L. Lane
  • 43
  • 4
1
vote
1 answer

ggplot double linechart and 3 columns

I've extracted by Rfacebook package some data about Facebook Pages. What I'm trying to get is two linecharts side by side like the attached image (a linechart for each UserName) where I can display likes, comments and shares at the same time like…
Andrea Angeli
  • 131
  • 1
  • 16
1
vote
2 answers

{getPost() does not retrieve reactions' component} & {"reactions" and "likes" with the same logical value return neither error nor warning msg}

[Win 10; R 3.4.3; RStudio 1.1.383; Rfacebook 0.6.15] Hi! I would like to ask two questions concerning the Rfacebook's getPost function: Even though I have tried all possible combinations of the logical values for the arguments "comments",…
1
vote
0 answers

Rfacebook not return page insights

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…
nemja
  • 459
  • 4
  • 19
1
vote
0 answers

Rfacebook: get reactions to posts

I want to use Rfacebook to get the reactions (not just likes) to specific posts but couldn't find a way to do that. Basically, I would want the same output for a comment as I get for a post: > BBC <- getPage(page="bbcnews", token=fb_oauth, n=5,…
Ivo
  • 3,890
  • 5
  • 22
  • 53
1
vote
1 answer

Issue installing R facebook HTTP 400

I am trying to install the facebook API with R. I have seen that a few people were also having trouble but I did not find the same issues than me. I have gotten the library but when I use the function fb_oauth <- fbOAuth(... and after putting the…
1
vote
1 answer

"Unsupported get request" with Rfacebook only on particular n

I am encountering the following error with the correct token, etc. Error in callAPI(url = url, token = token, api = api) : Unsupported get request. Object with ID '540404695989874_1594827280547605' does not exist, cannot be loaded due to missing…
mundos
  • 459
  • 6
  • 14
1
2 3