Skip to content

Commit

Permalink
fixes #132 (updated documentation)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobarbera committed Jul 11, 2017
1 parent 88697fe commit 0af6656
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions Rfacebook/R/getLikes.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
#' @export
#'
#' @title
#' Extract list of likes of a Facebook friend
#' Extract list of likes of the authenticated Facebook user
#'
#' @description
#' \code{getLikes} retrieves information about a friend's likes.
#' To retrieve the number of likes for a page, use \code{getUsers}
#' with the page IDs.
#' \code{getLikes} retrieves information about the authenticated use
#' only (not any friend). To retrieve the number of likes for a page,
#' use \code{getUsers} with the page IDs.
#'
#' @details
#'
#' This function requires the use of an OAuth token with the following
#' permissions: user_likes, friends_likes
#' permission: user_likes
#'
#' @author
#' Pablo Barbera \email{pbarbera@@usc.edu}
Expand All @@ -22,7 +22,7 @@
#' \url{https://developers.facebook.com/tools/explorer} or the OAuth token
#' created with \code{fbOAuth}.
#'
#' @param user A user ID or screen name.
#' @param user The name of the user. By default, "me".
#'
#' @param n Maximum number of likes to return for each user.
#'
Expand All @@ -32,7 +32,7 @@
#' }
#'

getLikes <- function(user, n=500, token){
getLikes <- function(user="me", n=500, token){
query <- paste0('https://graph.facebook.com/', user,
'?fields=likes.limit(', n, ').fields(id,name,website)')
content <- callAPI(query, token)
Expand Down
14 changes: 7 additions & 7 deletions Rfacebook/man/getLikes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Rfacebook/man/getUsers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0af6656

Please sign in to comment.