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

# PFAccountManagementClientLinkFacebookInstantGamesIdAsync

> 将 Facebook Instant Games ID 与用户的 PlayFab 账户关联

将 Facebook Instant Games ID 与用户的 PlayFab 账户关联

## 语法

```cpp theme={null}
HRESULT PFAccountManagementClientLinkFacebookInstantGamesIdAsync(  
    PFEntityHandle entityHandle,  
    const PFAccountManagementLinkFacebookInstantGamesIdRequest* request,  
    XAsyncBlock* async  
)  
```

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

**`request`**   [PFAccountManagementLinkFacebookInstantGamesIdRequest\*](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkfacebookinstantgamesidrequest.md)

已填充的请求对象。

**`async`**   XAsyncBlock\*\
*Inout*

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 适用于 Win32、Linux 和 macOS。 另请参阅 ClientLoginWithFacebookInstantGamesIdAsync, ClientUnlinkFacebookInstantGamesIdAsync。调用 XAsyncGetStatus 以获取操作的状态。 如果服务调用不成功，异步结果将是 E\_PF\_FACEBOOK\_INSTANT\_GAMES\_AUTH\_NOT\_CONFIGURED\_FOR\_TITLE, E\_PF\_INVALID\_FACEBOOK\_INSTANT\_GAMES\_SIGNATURE, E\_PF\_LINKED\_IDENTIFIER\_ALREADY\_CLAIMED 或全局 PlayFab 服务错误之一。 有关错误处理的详细信息，请参阅文档页面 "Handling PlayFab Errors"。

## 要求

**头文件：** PFAccountManagement.h

## 另请参阅

[PFAccountManagement 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)


## Related topics

- [服务 C API 概览 - PFAccountManagement.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [PFAccountManagementClientUnlinkFacebookInstantGamesIdAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientunlinkfacebookinstantgamesidasync.md)
- [PFAccountManagementLinkFacebookInstantGamesIdRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinkfacebookinstantgamesidrequest.md)
- [PFAccountManagementClientUnlinkFacebookInstantGamesIdRequest](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementclientunlinkfacebookinstantgamesidrequest.md)
- [PFAccountManagementClientLinkFacebookAccountAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkfacebookaccountasync.md)
