Analyzing Facebook with R

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:

  1. create a new app go to
  2. 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.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s