Xsolla-logo

Get social account friendsClient-side

get/users/me/social_friends

Gets a list of user’s friends from a social provider.

SecurityBearer
Request
query Parameters
platform
string

Name of the chosen social provider which you can enable in your Publisher Account > your Login project > Social connections. If you do not specify it, the call gets friends from all social providers.

Enum: "steam" "xbox" "twitter" "facebook" "vk"
offset
integer >= 0
Default: 0

Number of the elements from which the list is generated.

limit
integer [ 1 .. 500 ]
Default: 500

Maximum number of friends that are returned at a time.

with_xl_uid
boolean
Default: false

Shows whether the social friends are from your game.

Responses
200

OK

401

Unauthorized

429

Too Many Requests

Request samples
curl --request GET \
  --url 'https://login.xsolla.com/api/users/me/social_friends?platform=SOME_STRING_VALUE&offset=0&limit=500&with_xl_uid=false' \
  --header 'Authorization: Bearer BEARER_TOKEN'
Response samples
application/json
{}