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

# PFFriendsServerGetFriendsListAsync

> Récupère les amis actuels de l'utilisateur ayant le PlayFabId, limités aux utilisateurs qui ont un compte PlayFab. Les amis des comptes liés (Facebook, Steam) sont.

Récupère les amis actuels de l'utilisateur ayant le PlayFabId, limités aux utilisateurs qui ont un compte PlayFab. Les amis des comptes liés (Facebook, Steam) sont également inclus. Vous pouvez éventuellement exclure les amis de certains services liés.

## Syntaxe

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

### Paramètres

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle pour une entité de titre obtenue à l'aide de PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFFriendsServerGetFriendsListRequest\*](/fr-CA/services/playfab/api-references/c/pffriendstypes/structs/pffriendsservergetfriendslistrequest)

Objet de requête renseigné.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Notes

Cette API est disponible sur Win32, Linux et macOS. Voir aussi ServerAddFriendAsync, ServerGetPlayerProfileAsync, ServerRemoveFriendAsync, ServerSetFriendTagsAsync. Une fois la tâche asynchrone terminée, appelez [PFFriendsServerGetFriendsListGetResultSize](/fr-CA/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresultsize) et [PFFriendsServerGetFriendsListGetResult](/fr-CA/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult) pour obtenir le résultat.

## Configuration requise

**En-tête :** PFFriends.h

## Voir aussi

[Membres de PFFriends](/fr-CA/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [PFFriendsServerGetFriendsListGetResult](/fr-CA/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult.md)
- [Vue d'ensemble de l'API C Services - PFFriends.h](/fr-CA/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsServerAddFriendAsync](/fr-CA/services/playfab/api-references/c/pffriends/functions/pffriendsserveraddfriendasync.md)
- [PFFriendsServerGetFriendsListGetResultSize](/fr-CA/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresultsize.md)
- [Get Friends List](/api-reference/friend-list-management/get-friends-list.md)
