Returns a list of user friends identifiers and extended information about the user's friends.
vkGetUserFriends(
user_id = NULL,
name_case = "nom",
username = getOption("rvkstat.username"),
api_version = getOption("rvkstat.api_version"),
token_path = vkTokenPath(),
access_token = getOption("rvkstat.access_token")
)
user ID for which you want to get a list of friends. If the parameter is not specified, it is considered that it is equal to the identifier of the current user.
case for declining the user's first and last name. Possible values: nominative - nom, genitive - gen, dative - dat, accusative - acc, ablative - ins, prepositional - abl. Default nom.
Your vkontakte login.
Vkontakte API version.
Path to dir with credentials
API access tokens obtained using vkAuth or vkGetToken functions
Date frame with community statistics with the following values:
user id.
name.
last name
sex.
nickname of the user.
short page address. Returns a string containing the short address of the page (for example, andrew). If not assigned, it returns "id" + user_id, for example, id35828305.
date of birth. Returns in the format D.M.YYYY or D.M (if the year of birth is hidden). If the date of birth is hidden entirely, the field is absent in the answer.
city id, city name can be obtained using the function vkGetDbCities.
country id, country name can be obtained using the function vkGetDbCountries.
url of a square photo of a user having a width of 50 pixels. If the user does not have a photo, he returns http://vk.com/images/camera_c.gif.
url of a square photo of a user having a width of 100 pixels. If the user doesn<U+2019>t have a photo, he returns http://vk.com/images/camera_b.gif.
url of a user photo that has a width of 200 pixels. If the user doesn<U+2019>t have a photo, he returns http://vk.com/images/camera_a.gif.
information about whether the user's mobile phone number is known. Return values: 1 - known, 0 - unknown.
information about whether the user is currently online.
information about whether the current user can post on the wall. Possible values: 1 - can, 0 - can not.
information about whether the current user can see someone else's posts on the wall. Possible values: 1 - can, 0 - can not.
information about whether the current user can send a private message. Possible values: 1 - can, 0 - can not.
user status. Returns a string containing the text of the status located in the profile under the user name.
date and time of last visit.
the type of platform through which the last entry was made. Possible values: 1 - mobile version, 2 - application for iPhone, 3 - application for iPad, 4 - application for Android, 5 - application for Windows Phone, 6 - application for Windows 10, 7 - full version of the site.
university id.
university name.
faculty id.
faculty name.
graduation year.
learning form
status (for example, "Graduate (Specialist)")
marital status of the user. Possible values: 1 - not married / not married, 2 - have a friend / have a girlfriend, 3 - engaged / engaged, 4 - married / married, 5 - everything is difficult, 6 - in active search, 7 - in love / in love, 8 - in a civil marriage, 0 - not specified.
Documentation for API method friends.get: https://vk.com/dev/friends.get
# NOT RUN {
## user list
my_vk_friends <- vkGetUserFriends(user_id = 7437995)
# }
Run the code above in your browser using DataLab