> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFFriendsServerGetFriendsListAsync

> Recupera los amigos actuales del usuario con PlayFabId, limitado a los usuarios que tienen cuentas de PlayFab. Los amigos de cuentas vinculadas (Facebook, Steam) son.

Recupera los amigos actuales del usuario con PlayFabId, limitado a los usuarios que tienen cuentas de PlayFab. También se incluyen los amigos de cuentas vinculadas (Facebook, Steam). Opcionalmente, puede excluir los amigos de algunos servicios vinculados.

## Sintaxis

```cpp theme={null}
HRESULT PFFriendsServerGetFriendsListAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFFriendsServerGetFriendsListRequest* request,  
    XAsyncBlock* async  
)  
```

### Parámetros

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle para una entidad de título obtenida mediante PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFFriendsServerGetFriendsListRequest\*](https://docs.xbox.com/es/services/playfab/api-references/c/pffriendstypes/structs/pffriendsservergetfriendslistrequest.md)

Objeto de solicitud rellenado.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock para la operación asincrónica.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Comentarios

Esta API está disponible en Win32, Linux y macOS. Vea también ServerAddFriendAsync, ServerGetPlayerProfileAsync, ServerRemoveFriendAsync, ServerSetFriendTagsAsync. Cuando la tarea asincrónica se haya completado, llame a [PFFriendsServerGetFriendsListGetResultSize](https://docs.xbox.com/es/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresultsize.md) y [PFFriendsServerGetFriendsListGetResult](https://docs.xbox.com/es/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult.md) para obtener el resultado.

## Requisitos

**Encabezado:** PFFriends.h

## Consulte también

[Miembros de PFFriends](https://docs.xbox.com/es/services/playfab/api-references/c/pffriends/pffriends_members.md)


## Related topics

- [PFFriendsServerGetFriendsListGetResult](https://docs.xbox.com/es/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult.md)
- [Información general de la API de C de Services - PFFriends.h](https://docs.xbox.com/es/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsServerAddFriendAsync](https://docs.xbox.com/es/services/playfab/api-references/c/pffriends/functions/pffriendsserveraddfriendasync.md)
- [Get Friends List](https://docs.xbox.com/api-reference/friend-list-management/get-friends-list.md)
- [PFFriendsServerGetFriendsListGetResultSize](https://docs.xbox.com/es/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresultsize.md)
