I was very excited when I found a website mentioning the possibility to access and analyze Facebook using R. There is an R package called RFacebook to access Facebook for this purpose. Details steps can be here.
The summary of the steps are:
- create a new app go to https://developers.facebook.com
- Run several R commands below
fb_oauth <- fbOAuth(app_id=”XXXXXX”, app_secret=”YYYYYY”,extended_permissions = FALSE)
me <- getUsers(“me”,token=fb_oauth)
group <- getGroup(group_id = ZZZZZZZ, token=fb_oauth)
Unfortunately, FB puts more access to there are not much things can be gathered anymore. For example, I’m unable to access closed group anymore. Only open group can be accessed.