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

# PFFriendsFriendInfo

> PFFriendsFriendInfo 資料模型。

PFFriendsFriendInfo 資料模型。

## 語法

```cpp theme={null}
typedef struct PFFriendsFriendInfo {  
    PFUserFacebookInfo const* facebookInfo;  
    const char* friendPlayFabId;  
    PFUserGameCenterInfo const* gameCenterInfo;  
    PFPlayerProfileModel const* profile;  
    PFUserPsnInfo const* PSNInfo;  
    PFUserSteamInfo const* steamInfo;  
    const char* const* tags;  
    uint32_t tagsCount;  
    const char* titleDisplayName;  
    const char* username;  
    PFUserXboxInfo const* xboxInfo;  
} PFFriendsFriendInfo;  
```

### 成員

**`facebookInfo`**   [PFUserFacebookInfo](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfuserfacebookinfo) const\*<br />*may be nullptr*

（選擇性）可用的 Facebook 資訊（如果使用者與所連線的 Facebook 好友在同一個 Title 中都擁有 PlayFab 帳戶）。

**`friendPlayFabId`**   const char\*<br />*is null-terminated*

（選擇性）此好友的 PlayFab 唯一識別碼。

**`gameCenterInfo`**   [PFUserGameCenterInfo](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfusergamecenterinfo) const\*<br />*may be nullptr*

（選擇性）可用的 Game Center 資訊（如果使用者與所連線的 Game Center 好友在同一個 Title 中都擁有 PlayFab 帳戶）。

**`profile`**   [PFPlayerProfileModel](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfplayerprofilemodel) const\*<br />*may be nullptr*

（選擇性）使用者的設定檔（如果有要求）。

**`PSNInfo`**   [PFUserPsnInfo](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfuserpsninfo) const\*<br />*may be nullptr*

（選擇性）可用的 PlayStation :tm: Network 資訊，如果使用者與所連線的 PlayStation :tm Network 好友在同一個 Title 中都擁有 PlayFab 帳戶。

**`steamInfo`**   [PFUserSteamInfo](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfusersteaminfo) const\*<br />*may be nullptr*

（選擇性）可用的 Steam 資訊（如果使用者與所連線的 Steam 好友在同一個 Title 中都擁有 PlayFab 帳戶）。

**`tags`**   const char\* const\*<br />*may be nullptr*

（選擇性）已與此好友相關聯的標籤。

**`tagsCount`**   uint32\_t

tags 的計數

**`titleDisplayName`**   const char\*<br />*is null-terminated*

（選擇性）此好友的 Title 專屬顯示名稱。

**`username`**   const char\*<br />*is null-terminated*

（選擇性）此好友的 PlayFab 唯一使用者名稱。

**`xboxInfo`**   [PFUserXboxInfo](/zh-TW/services/playfab/api-references/c/pftypes/structs/pfuserxboxinfo) const\*<br />*may be nullptr*

（選擇性）可用的 XBOX 資訊（如果使用者與所連線的 XBOX Live 好友在同一個 Title 中都擁有 PlayFab 帳戶）。

## 需求

**標頭：** PFFriendsTypes.h

## 另請參閱

[PFFriendsTypes 成員](/zh-TW/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members)


## Related topics

- [PFFriendsGetFriendsListResult](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsgetfriendslistresult.md)
- [服務 C API 概觀 - PFFriendsTypes.h](/zh-TW/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members.md)
- [Get Friends List](/api-reference/friend-list-management/get-friends-list.md)
- [Add Friend](/api-reference/friend-list-management/add-friend.md)
- [Remove Friend](/api-reference/friend-list-management/remove-friend.md)
