Rfacebook package installation and authentication
The Rfacebook
package is authored and maintained by Pablo Barbera and Michael Piccirilli. It provides an interface to the Facebook API. It needs Version 2.12.0 or later of R and it is dependent on a few other packages, such as httr
, rjson
, and httpuv
. Before starting, make sure those packages are installed. It is preferred to have Version 0.6 of the httr
package installed.
Installation
We will now install the Rfacebook
packages. We can download and install the latest package from GitHub using the following code and load the package using the library
function. On the other hand, we can also install the Rfacebook
package from the CRAN network. One prerequisite for installing the package using the function install_github
is to have the package devtools
loaded into the R environment. The code is as follows:
install.packages("devtools") library(devtools) install_github("Rfacebook", "pablobarbera", subdir="Rfacebook...