> ## 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 使用者存取權杖來完成。如需權杖的詳細資訊，請參閱 Facebook 開發人員文件 (https://developers.facebook.com/docs/facebook-login/access-tokens/)。例如，在 Unity 中，權杖可透過 Facebook SDK ScriptableObject FB 中的 AccessToken 取得。請注意，Title 絕不應在不同的 PlayFab Title ID 之間重複使用相同的 Facebook 應用程式，因為 Facebook 會為每個應用程式提供唯一的使用者識別碼，這樣做可能會導致使用者 PlayFab 帳戶資訊中的 Facebook 識別碼發生問題。如果您必須在新的 PlayFab Title ID 中重複使用應用程式，請務必先將所有帳戶與 Facebook 取消連結，或刪除第一個 Title ID 中的所有使用者。

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 取得。請注意，Title 絕不應在不同的 PlayFab Title ID 之間重複使用相同的 Facebook 應用程式，因為 Facebook 會為每個應用程式提供唯一的使用者識別碼，這樣做可能會導致使用者 PlayFab 帳戶資訊中的 Facebook 識別碼發生問題。如果您必須在新的 PlayFab Title ID 中重複使用應用程式，請務必先將所有帳戶與 Facebook 取消連結，或刪除第一個 Title ID 中的所有使用者。

## 語法

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

### 成員

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

（選擇性）來自 Facebook 的使用者唯一識別碼。

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

（選擇性）用於有限登入驗證的權杖。

**`customTags`**   [PFStringDictionaryEntry](/zh-TW/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 成員](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

- [PFAccountManagementClientLinkFacebookAccountAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkfacebookaccountasync.md)
- [服務 C API 概觀 - PFAccountManagementTypes.h](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [Link Facebook Account](/api-reference/account-management/link-facebook-account.md)
- [PFAccountManagementLinkFacebookInstantGamesIdRequest](/zh-TW/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkfacebookinstantgamesidrequest.md)
- [PFAccountManagementClientLinkFacebookInstantGamesIdAsync](/zh-TW/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkfacebookinstantgamesidasync.md)
