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

# PFAccountManagementLinkFacebookAccountRequest

> PFAccountManagementLinkFacebookAccountRequest 数据模型。使用 Facebook 用户访问令牌来完成 Facebook 登录。有关的更多信息。

PFAccountManagementLinkFacebookAccountRequest 数据模型。使用 Facebook 用户访问令牌来完成 Facebook 登录。有关该令牌的更多信息，请参见 Facebook 开发人员文档 ([https://developers.facebook.com/docs/facebook-login/access-tokens/](https://developers.facebook.com/docs/facebook-login/access-tokens/))。例如，在 Unity 中，该令牌可通过 Facebook SDK 的 ScriptableObject FB 中的 AccessToken 获得。请注意，标题绝不应在 PlayFab 标题 ID 之间重用相同的 Facebook 应用程序，因为 Facebook 会为每个应用程序提供唯一的用户 ID，这样做可能会导致该用户在其 PlayFab 账号信息中的 Facebook ID 出现问题。如果必须在新的 PlayFab 标题 ID 中重用应用程序，请务必先取消所有账号与 Facebook 的链接，或删除第一个标题 ID 中的所有用户。

## 语法

```cpp theme={null}
typedef struct PFAccountManagementLinkFacebookAccountRequest {  
    const char* accessToken;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    bool const* forceLink;  
} PFAccountManagementLinkFacebookAccountRequest;  
```

### 成员

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

来自 Facebook 的用户唯一标识符。

**`customTags`**   [PFStringDictionaryEntry](/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry) const\*<br />*may be nullptr*

（可选）与请求关联的可选自定义标记（例如构建版本号、外部跟踪标识符等）。

**`customTagsCount`**   uint32\_t

customTags 的计数

**`forceLink`**   bool const\*<br />*may be nullptr*

（可选）如果另一个用户已链接到该账号，则取消该用户的链接并重新链接。

## 要求

**头文件：** PFAccountManagementTypes.h

## 另请参阅

[PFAccountManagementTypes 成员](/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

- [PFAccountManagementClientLinkFacebookAccountAsync](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkfacebookaccountasync.md)
- [服务 C API 概览 - PFAccountManagementTypes.h](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [PFAccountManagementLinkFacebookInstantGamesIdRequest](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkfacebookinstantgamesidrequest.md)
- [PFAccountManagementClientLinkFacebookInstantGamesIdAsync](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkfacebookinstantgamesidasync.md)
- [PFAccountManagementUnlinkFacebookAccountRequest](/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementunlinkfacebookaccountrequest.md)
