getGroupWallLikes: Get Likes to Posts from a Group Page

Description Usage Arguments Details Value Author(s) References Examples

Description

Returns a list of vectors with user IDs who liked posts on a group page. Each vector of user IDs corresponds to a post those users liked.

Usage

1
getGroupWallLikes(group_id, access_token, num_posts = 'all', verbose = FALSE)

Arguments

group_id

A numeric ID for the VK group. Available from the group's page (see Details).

access_token

Your access token (see ?makeAccessToken).

num_posts

Number of posts from the wall to retrieve. Either 'all' or a positive integer.

verbose

Boolean: if FALSE (default), informational messages are suppressed.

Details

Many VK groups and users have their ID as part of their URL address (e.g. https://vk.com/publicGROUPID, where GROUPID is a sequence of numbers). In the event a group has a screen name that does not show its ID in the URL, one can access it by clicking on any group post (or photo, video, etc.): the post will open with a new URL of the form https://vk.com/SCREENNAME?w=wall-GROUPID_POSTID). Pass GROUPID (without the minus sign in front of it) to the function call.

Value

A list of vectors with user IDs who liked posts on a group page. Each vector of user IDs corresponds to a post those users liked.

Author(s)

Denis Stukal denis.stukal@nyu.edu

References

VK API Methods: Likes (https://vk.com/dev/likes.getList)

Examples

1
2
3
4
5
6
7
## Not run: 
mytoken = 'XXXXXXXXXXXXXX'
groupid = AAAAAAAA
dat <- getGroupWallLikes(group_id = groupid, access_token = mytoken)
str(dat)

## End(Not run)

denisStukal/Rvk documentation built on June 3, 2019, 5:56 p.m.