searchGroup {Rfacebook}R Documentation

Find Facebook ID of a group

Description

Use searchGroup in combination with getGroup to scrape public posts on Facebook groups.

Usage

searchGroup(name, token, api = NULL)

Arguments

name

Name of Facebook group (in URL)

token

Either a temporary access token created at https://developers.facebook.com/tools/explorer or the OAuth token created with fbOAuth.

api

API version. e.g. "v2.8". NULL is the default.

Examples

## Not run: 
## Find Facebook ID for R-Users Facebook group
load("fb_oauth")
ids <- searchGroup(name="rusers", token=fb_oauth)
 ids[1,] # id = 18533493739
## Downloading posts from R-Users Facebook group
 group <- getGroup(group_id=18533493739, token=fb_oauth)
## Downloading posts from R-Users Facebook group in January 2013
 group <- getGroup(group_id=18533493739, token=fb_oauth,
	since='2013/01/01', until='2013/01/31')

## End(Not run)

[Package Rfacebook version 0.6.15 Index]