Facebook and R

From PeformIQ Upgrade
Revision as of 15:18, 9 August 2016 by PeterHarding (talk | contribs)
Jump to navigation Jump to search

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