Extract list of likes of a Facebook friend
getLikes
retrieves information about a friend's likes. To retrieve the number of likes for a page, use getUsers
with the page IDs.
getLikes(user, n = 500, token)
user
: A user ID or screen name.n
: Maximum number of likes to return for each user.token
: Either a temporary access token created at https://developers.facebook.com/tools/explorer or the OAuth token created with fbOAuth
.This function requires the use of an OAuth token with the following permissions: user_likes, friends_likes
## Not run: token <- 'XXXXX' my_likes <- getLikes(user="me", token=token) ## End(Not run)
Pablo Barbera pablo.barbera@nyu.edu
getFriends
, fbOAuth
Useful links