Description Usage Arguments Examples
Use searchGroup
in combination with getGroup
to scrape
public posts on Facebook groups.
1 | searchGroup(name, token, api = NULL)
|
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 |
api |
API version. e.g. "v2.8". |
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.