Difference between revisions of "Facebook and R"

From PeformIQ Upgrade
Jump to navigation Jump to search
Line 1: Line 1:
Also see - [[Getting Started with R]]
Also see - [[Getting Started with R]]


* http://pablobarbera.com/blog/archives/3.html
<pre>
install.packages("Rfacebook")  # from CRAN
library(devtools)
install_github("Rfacebook", "pablobarbera", subdir = "Rfacebook")  # from GitHub
</pre>
<pre>
library(Rfacebook)
# token generated here: https://developers.facebook.com/tools/explorer
token <- "XXXXXXXXXXXXXX"
me <- getUsers("xxxx", token, private_info = TRUE)
me$name # my name
</pre>
<pre>
</pre>


[[Category:R]]
[[Category:R]]

Revision as of 15:18, 9 August 2016

Also see - Getting Started with R

install.packages("Rfacebook")  # from CRAN
library(devtools)
install_github("Rfacebook", "pablobarbera", subdir = "Rfacebook")  # from GitHub
library(Rfacebook)
# token generated here: https://developers.facebook.com/tools/explorer 
token <- "XXXXXXXXXXXXXX"
me <- getUsers("xxxx", token, private_info = TRUE)
me$name # my name