getUsers {Rfacebook} | R Documentation |
Extract information about one or more Facebook users
Description
getUsers
retrieves public information about one or more Facebook users.
After version 2.0 of the Facebook API, only id, name, and picture are available through the API. All the remaining fields will be missing.
Usage
getUsers(users, token, private_info = FALSE)
Arguments
users |
A vector of user IDs. |
token |
Either a temporary access token created at
https://developers.facebook.com/tools/explorer or the OAuth token
created with |
private_info |
If |
Author(s)
Pablo Barbera pablo.barbera@nyu.edu
See Also
getFriends
, getPost
, searchFacebook
Examples
## Not run:
## See examples for fbOAuth to know how token was created.
## Getting information about the authenticated user
load("fb_oauth")
fb <- getUsers("me", token=fb_oauth)
fb$username
## End(Not run)