getFriends
retrieves information about the user's friends.getFriends(token, simplify = FALSE)
fbOAuth
.TRUE
, function will return only name and id for each friend.
If FALSE
, it will return additional information from their profiles: gender, birthday,
location, hometown, relationship status and profile picture.getUsers
, fbOAuth
## 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)
## ---------------------------------------------
Run the code above in your browser using DataLab