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

# PFAuthenticationLoginWithFacebookRequest

> PFAuthenticationLoginWithFacebookRequest 데이터 모델. Facebook 로그인은 Facebook 사용자 액세스 토큰을 사용하여 수행됩니다. 토큰에 대한 자세한 내용은.

PFAuthenticationLoginWithFacebookRequest 데이터 모델. 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으로 토큰을 사용할 수 있습니다. 사용자가 Facebook 계정으로 처음 로그인하는 경우이고 CreateAccount가 true로 설정된 경우, 새 PlayFab 계정이 생성되어 제공된 계정의 Facebook ID에 연결됩니다. 이 경우 이메일이나 사용자 이름은 PlayFab 계정과 연결되지 않습니다. 그렇지 않으면 해당 Facebook 계정에 연결된 PlayFab 계정이 없는 경우 이를 나타내는 오류가 반환되어, 타이틀이 사용자가 PlayFab 계정을 만들도록 안내할 수 있게 됩니다. Facebook은 애플리케이션마다 고유한 사용자 ID를 제공하므로, 타이틀은 PlayFab 타이틀 ID 간에 동일한 Facebook 애플리케이션을 절대 재사용해서는 안 되며, 그렇게 하면 PlayFab 계정 정보에서 사용자의 Facebook ID와 관련된 문제가 발생할 수 있습니다. 새 PlayFab 타이틀 ID에서 애플리케이션을 재사용해야 하는 경우, 먼저 Facebook에서 모든 계정의 연결을 해제하거나 첫 번째 타이틀 ID의 모든 사용자를 삭제해야 합니다. 참고: 사용자가 AccessToken이 아닌 AuthenticationToken으로 인증된 경우, GetFriendsList API는 빈 목록을 반환합니다.

## 구문

```cpp theme={null}
typedef struct PFAuthenticationLoginWithFacebookRequest {  
    const char* accessToken;  
    const char* authenticationToken;  
    bool createAccount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    const char* playerSecret;  
} PFAuthenticationLoginWithFacebookRequest;  
```

### 멤버

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

사용자에 대한 Facebook의 고유 식별자입니다.

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

(선택 사항) 제한된 로그인 인증에 사용되는 토큰입니다.

**`createAccount`**   bool

현재 이 ID에 연결된 계정이 없는 경우 자동으로 PlayFab 계정을 생성합니다.

**`customTags`**   PFStringDictionaryEntry const\*<br />*may be nullptr*

(선택 사항) 요청과 연결된 선택적 사용자 지정 태그입니다(예: 빌드 번호, 외부 추적 식별자 등).

**`customTagsCount`**   uint32\_t

customTags의 개수입니다.

**`infoRequestParameters`**   PFGetPlayerCombinedInfoRequestParams const\*<br />*may be nullptr*

(선택 사항) 사용자에 대해 반환할 정보 항목에 대한 플래그입니다.

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

(선택 사항) API 요청 서명을 확인하는 데 사용되는 플레이어 비밀입니다(엔터프라이즈 전용).

## 요구 사항

**헤더:** PFAuthenticationTypes.h

## 참고 항목

[PFAuthenticationTypes 멤버](/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationLoginWithFacebookAsync](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithfacebookasync.md)
- [PFAuthenticationReLoginWithFacebookAsync](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithfacebookasync.md)
- [Services C API 개요 - PFAuthenticationTypes.h](/ko/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members.md)
- [PlayFab Services C/C++ SDK 릴리스 정보](/ko/services/playfab/release-notes/playfab-c/index.md)
- [PFAuthenticationLoginWithFacebookGetResult](/ko/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithfacebookgetresult.md)
