Learn R Programming

Rfacebook (version 0.6.15)

getCheckins: Extract list of checkins of a Facebook friend

Description

getCheckins retrieves information about a friend's checkins

Usage

getCheckins(user, n = 10, token, tags = FALSE, api = NULL)

Arguments

user
A user ID or screen name.
n
Maximum number of checkins 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.
tags
If TRUE, output of function will be a list of two elements: a data frame with user's checkins and a list of data frames, where each element contains information about users tagged in each checkin.
api
API version. e.g. "v2.8". NULL is the default.

Details

This function requires the use of an OAuth token with the following permissions: user_status, user_checkins, friends_status, friends_checkins

Check-in search was deprecated with version 2.0 of the Facebook Graph API.

See Also

getFriends

Examples

Run this code
## Not run: ------------------------------------
#  token <- 'XXXXX'
#  my_checkins <- getCheckins(user="me", token=token)
## ---------------------------------------------

Run the code above in your browser using DataLab