Description Usage Arguments Details Author(s) See Also Examples
getFriends
retrieves information about the user's friends.
1 | getFriends(token, simplify = FALSE)
|
token |
Either a temporary access token created at
https://developers.facebook.com/tools/explorer or the OAuth token
created with |
simplify |
If |
This function requires the use of a OAuth token with extended permissions. After the introduction of version 2.0 of the Graph API, only friends who are using the application that you used to generate the token to query the API will be returned.
Pablo Barbera pablo.barbera@nyu.edu
1 2 3 4 5 6 7 8 | ## Not run:
## Copy and paste token created at FB Graph API Explorer
token <- "XXXXXX"
my_friends <- getFriends(token=token, simplify=TRUE)
## Since users are ordered by ID, this will return 10 oldest user accounts
head(my_friends, n=10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.