Rfacebook | Dev version of Rfacebook package | Frontend Framework library
kandi X-RAY | Rfacebook Summary
kandi X-RAY | Rfacebook Summary
Due to recent changes in Facebook's Graph API, all functions of the package now require a working app that has undergone App Review. More details are available here. NOTE: This package is currently not being maintained and issues are not monitored.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Rfacebook
Rfacebook Key Features
Rfacebook Examples and Code Snippets
Community Discussions
Trending Discussions on Rfacebook
QUESTION
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:
...ANSWER
Answered 2018-Mar-05 at 14:54See the Facebook Insights API section on Page Post Impressions.
You should be able to pass values for metric
as
'post_impressions_paid'
'post_impressions_fan_paid'
'post_impressions_organic'
'post_impressions_viral'
'post_impressions_nonviral'
- etc...
to retrieve the various measures you need.
metric
can also be a character vector which will allow you to retrieve many at once.
QUESTION
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 the attached image.
...ANSWER
Answered 2018-Jan-22 at 18:10The current plot might be easier to create by rearranging your data a bit with tidyr
:
QUESTION
I am having problems when extracting comments from posts using the RFacebook package.
...ANSWER
Answered 2017-Dec-31 at 17:23Consider changing your locale
. It's not a problem with Rfacebook
. I can replicate the behavior you described by setting locale to C
, e.g.
QUESTION
Sometimes when working with packrat, one gets this kind of output whilst checking on the status of the packrat library:
...ANSWER
Answered 2017-Nov-14 at 12:48It depends on what do you want from packrat
. If you want to load the last snapshot, use restore()
. If you update a package that's used in project, and want to make new snapshot, use snapshot()
.
QUESTION
I extracted facebook posts with Rfacebook according time criteria (code: see below) and want to drop all the results (i.e. lines in the data frame) where one column ("messages") doesn't contain a key word.
My only 'solution' with grep
is leaving me with only the content of that column. Can somebody help me?
Code:
...ANSWER
Answered 2017-Oct-28 at 11:47The suggestion by r2evans seemed to have worked. I slightly modified the code and did this:
QUESTION
I'm able to retrieve the number of comments, shares and likes for a post of a Facebook page but I can't find a way to retrieve the number of likes (or "fans") a page has.
It is stated in the documentation that "To retrieve the number of likes for a page, use getUsers with the page IDs.".
My problem is that the getUsers()
function return an error and getPage()
contains no information regarding the number of fans, but only the number of likes per every single post.
ANSWER
Answered 2017-Oct-27 at 15:22As I said in the comments section I managed to get the fan_count
by requesting the API with this url : https://graph.facebook.com/cocacola/?fields=fan_count&access_token=app_id|app_secret
It needed a Facebook App that provides permanent access to the Facebook API.
QUESTION
The point in the code is to gather posts from a Facebook page and store them in my_page however i am unfamiliar with the code as it is for a Uni project. The problem i have is that it has to be used in a .rpres format created using Rstudio and as such i don't want the output but still need to run the code.
...ANSWER
Answered 2017-Aug-14 at 15:00Your problem is simply that Rfacebook::getPage
prints to the console when it runs. That's because it calls cat()
, which is the same thing as print()
. Fortunately the package provides a switch to turn that off - all you need to do is add the verbose = FALSE
argument to your call and it will stop printing:
QUESTION
Until a month ago I was using the Rfacebook library with no problems. When I load the token I had generated and I want to use some function for example
...ANSWER
Answered 2017-May-30 at 17:38As CBroe mentioned, the access token return format has changed and therefore the problem seems to be, that the credentials (including the access token) returned when authorizing with facebook is saved as the field name/key instead of the field value.
So a fix to this would be the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Rfacebook
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page