> ## 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.

# 好友排行榜

> 有关创建 PlayFab 好友排行榜的教程，这些排行榜镜像标准的排行榜 API，但将排名限制为玩家的好友列表和附近的好友。

好友专用 API 镜像了标准的 [GetLeaderboard](xref:titleid.playfabapi.com.client.playerdatamanagement.getleaderboard) 和 [GetLeaderboardAroundPlayer](xref:titleid.playfabapi.com.client.playerdatamanagement.getleaderboardaroundplayer) API 调用，但将玩家池限制为玩家的好友列表。

<Note>
  [GetFriendLeaderboardAroundPlayer](xref:titleid.playfabapi.com.client.playerdatamanagement.getfriendleaderboardaroundplayer) API *不会*将排行榜的中心基于当前登录的玩家——它可以是随请求提供的*任何* PlayFab ID。你可以使用此功能允许玩家查找任何好友在排行榜上的位置，无论他们彼此之间的距离如何。
</Note>


## Related topics

- [排行榜的更多用法](/zh-CN/services/playfab/community/leaderboards/doing-more-with-leaderboards.md)
- [PFLeaderboardsGetFriendLeaderboardForEntityAsync](/zh-CN/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetfriendleaderboardforentityasync.md)
- [API 排行榜参考](/zh-CN/services/playfab/community/leaderboards/api-reference.md)
- [服务 C API 概览 - PFLeaderboards.h](/zh-CN/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [排行榜](/zh-CN/build/steam-porting-guide/features/steam-leaderboards.md)
