Learn R Programming

vkR (version 0.2)

getMutual: Returns a list of user IDs of the mutual friends of two users

Description

Returns a list of user IDs of the mutual friends of two users

Usage

getMutual(
  source_id = "",
  target_uid = "",
  target_uids = "",
  order = "",
  count = "",
  offset = "",
  v = getAPIVersion()
)

Arguments

source_id

ID of the user whose friends will be checked against the friends of the user specified in target_uid

target_uid

ID of the user whose friends will be checked against the friends of the user specified in source_uid

target_uids

List of target uids (list of comma-separated positive numbers, the maximum number of elements allowed is 100)

order

Sort order

count

Number of mutual friends to return

offset

Offset needed to return a specific subset of mutual friends

v

Version of API

Examples

Run this code
# NOT RUN {
mutual_friends <- getMutual(target_uid=1)
# }

Run the code above in your browser using DataLab