getLikes {Rfacebook} | R Documentation |
Extract list of likes of a Facebook friend
Description
getLikes
retrieves information about a friend's likes.
To retrieve the number of likes for a page, use getUsers
with the page IDs.
Usage
getLikes(user, n = 500, token)
Arguments
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 |
Details
This function requires the use of an OAuth token with the following permissions: user_likes, friends_likes
Author(s)
Pablo Barbera pablo.barbera@nyu.edu
See Also
Examples
## Not run:
token <- 'XXXXX'
my_likes <- getLikes(user="me", token=token)
## End(Not run)
[Package Rfacebook version 0.6.15 Index]