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

# Configuration de l'authentification PlayFab avec Facebook et Unity

> Tutoriel pas à pas pour intégrer la connexion Facebook dans un projet Unity avec le SDK PlayFab, couvrant la configuration de l'application Facebook et le code d'authentification des joueurs.

Ce tutoriel vous guide à travers un exemple d'authentification PlayFab avec Facebook et Unity.

## Configuration requise

* [Unity 5+](https://unity3d.com/) et un projet créé.
* Un [compte Facebook](https://www.facebook.com/) pour les tests.
* Le [Facebook SDK](https://developers.facebook.com/docs/unity/) importé dans le projet.
* Un titre [PlayFab](https://developer.playfab.com/) inscrit.
* Le [SDK PlayFab](https://aka.ms/playfabunitysdkdownload) importé dans le projet avec une référence de titre configurée.
* Une bonne connaissance des [principes de base et bonnes pratiques de connexion](/fr/services/playfab/identity/player-identity/login/login-basics-best-practices).

## Implémentation

### Inscription d'une application Facebook

Commencez par accéder au [portail des développeurs Facebook](https://developers.facebook.com/) :

1. Placez le pointeur de la souris sur le bouton **My Apps**.
2. Sélectionnez **Add a New App**, comme illustré ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-add-a-new-app.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=8f2cf49110ee6fa800418dc19843cb16" alt="Facebook : ajouter une nouvelle application" width="1049" height="502" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-add-a-new-app.png" />

Une nouvelle fenêtre contextuelle **Application** s'ouvre.

1. Entrez un nom pour votre **Application**.
2. Entrez une adresse **Contact Email**.

<Note>
  Veillez à choisir votre propre **Application Name** *unique* et votre propre **Email**, comme illustré ci-dessous.
</Note>

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-new-app-id.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=7a0feb9725217dcca8d4b0fb861e3c3e" alt="Facebook : nouvel ID d'application" width="766" height="369" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-new-app-id.png" />

1. Accédez à l'onglet **Settings**.
2. Passez ensuite au sous-onglet **Basic**.
3. Repérez votre **Application ID**.
   * Copiez-le en lieu sûr, à un endroit facilement accessible.
     Nous l'utiliserons plus tard pour configurer le Facebook SDK.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-save-app-id.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=540b62a0ad44a22f49fa944e2d6741d3" alt="Facebook : enregistrer l'ID d'application" width="1049" height="650" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-save-app-id.png" />

Accédez au [Facebook Access Token Tool](https://developers.facebook.com/tools/accesstoken/).

1. Repérez votre **App** dans la liste.
2. Vérifiez qu'un **User Token** lui est attribué.

<Note>
  Si aucun jeton utilisateur ne vous est attribué, demandez-en un à l'aide du bouton situé à droite de votre écran. Consultez cette page chaque fois que vous avez besoin d'un nouveau jeton utilisateur. Si l'autorisation échoue lors des tests sur PC, l'expiration du jeton en est probablement la cause. Actualisez la page pour obtenir un nouveau jeton utilisateur et testez à nouveau.
</Note>

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/access-token-tool.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=8bcd65dadccacafbfe04227bd3d5ad4c" alt="Facebook Access Token Tool" width="1094" height="406" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/access-token-tool.png" />

1. Dans votre page **Application Manager**, accédez à **+ Add Products**.
2. Repérez l'entrée **Facebook Login** et sélectionnez **Get Started**.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-html5/login-get-started.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=bd346c82af2a1914bd8dfca79653f5c6" alt="Facebook Login : prise en main" width="1205" height="601" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-html5/login-get-started.png" />

Une page contenant les paramètres du produit **Login** doit s'ouvrir.

1. Assurez-vous que la page **Settings** du produit **Login** est ouverte.
2. Vérifiez que **Client OAuth** et **Web OAuth** sont tous deux activés.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-html5/login-product-settings.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=493c1ca8600489493ca47ced5c579204" alt="Paramètres du produit Facebook Login" width="1204" height="915" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-html5/login-product-settings.png" />

### Configuration du Facebook SDK

Ouvrez votre **projet Unity** :

1. Sélectionnez **Facebook** dans le menu Fichier.
2. Sélectionnez ensuite **Edit Settings**.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/edit-project-settings.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=fbf61a04fb83b8ada1e829f7918cdc14" alt="Modifier les paramètres Facebook du projet Unity" width="518" height="483" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/edit-project-settings.png" />

La fenêtre **Inspector** affiche la configuration actuelle du **Facebook SDK**.

* Entrez votre **Application ID** dans le champ correspondant, comme illustré ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/enter-app-id.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=46683d51640caa63de8f3c828b2f7adf" alt="Entrer l'ID d'application dans la configuration du Facebook SDK" width="477" height="528" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/enter-app-id.png" />

### Script d'authentification simple

Créez un nouveau **Game Object** et renommez-le **PlayfabFacebookAuthExample**, comme illustré ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/create-game-object.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=3a19b0150725400f2affedef4c8c0ab8" alt="Créer un nouveau Game Object" width="446" height="342" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/create-game-object.png" />

1. Créez un script nommé **PlayfabFacebookAuthExample.cs**.
2. Ajoutez-le au **Game Object**, comme illustré ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/add-example-script.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=df63197b8889dcd5fccadabef66e37e0" alt="Ajouter l'exemple de script au Game Object" width="1025" height="444" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/add-example-script.png" />

Dans  `PlayfabFacebookAuthExample.cs`, placez le code suivant.

```csharp theme={null}
// Import statements introduce all the necessary classes for this example.
using Facebook.Unity;
using PlayFab;
using PlayFab.ClientModels;
using UnityEngine;
using LoginResult = PlayFab.ClientModels.LoginResult;

public class PlayfabFacebookAuthExample : MonoBehaviour
{
    // holds the latest message to be displayed on the screen
    private string _message;

    public void Start()
    {
        SetMessage("Initializing Facebook..."); // logs the given message and displays it on the screen using OnGUI method

        // This call is required before any other calls to the Facebook API. We pass in the callback to be invoked once initialization is finished
        FB.Init(OnFacebookInitialized);  

    }

    private void OnFacebookInitialized()
    {
        SetMessage("Logging into Facebook...");

        // Once Facebook SDK is initialized, if we are logged in, we log out to demonstrate the entire authentication cycle.
        if (FB.IsLoggedIn)
            FB.LogOut();

        // We invoke basic login procedure and pass in the callback to process the result
        FB.LogInWithReadPermissions(null, OnFacebookLoggedIn);
    }

    private void OnFacebookLoggedIn(ILoginResult result)
    {
        // If result has no errors, it means we have authenticated in Facebook successfully
        if (result == null || string.IsNullOrEmpty(result.Error))
        {
            SetMessage("Facebook Auth Complete! Access Token: " + AccessToken.CurrentAccessToken.TokenString + "\nLogging into PlayFab...");

            /*
             * We proceed with making a call to PlayFab API. We pass in current Facebook AccessToken and let it create
             * and account using CreateAccount flag set to true. We also pass the callback for Success and Failure results
             */
            PlayFabClientAPI.LoginWithFacebook(new LoginWithFacebookRequest { CreateAccount = true, AccessToken = AccessToken.CurrentAccessToken.TokenString},
                OnPlayfabFacebookAuthComplete, OnPlayfabFacebookAuthFailed);
        }
        else
        {
            // If Facebook authentication failed, we stop the cycle with the message
            SetMessage("Facebook Auth Failed: " + result.Error + "\n" + result.RawResult, true);
        }
    }

    // When processing both results, we just set the message, explaining what's going on.
    private void OnPlayfabFacebookAuthComplete(LoginResult result)
    {
        SetMessage("PlayFab Facebook Auth Complete. Session ticket: " + result.SessionTicket);
    }

    private void OnPlayfabFacebookAuthFailed(PlayFabError error)
    {
        SetMessage("PlayFab Facebook Auth Failed: " + error.GenerateErrorReport(), true);
    }

    public void SetMessage(string message, bool error = false)
    {
        _message = message;
        if (error)
            Debug.LogError(_message);
        else
            Debug.Log(_message);
    }

    public void OnGUI()
    {
        var style = new GUIStyle { fontSize = 40, normal = new GUIStyleState { textColor = Color.white }, alignment = TextAnchor.MiddleCenter, wordWrap = true };
        var area = new Rect(0,0,Screen.width,Screen.height);
        GUI.Label(area, _message,style);
    }
}
```

## Test

### Exécution de l'application dans l'éditeur

1. Sélectionnez le bouton **Play**. Une fois **Facebook** initialisé (et un appel d'authentification effectué), une boîte de dialogue d'authentification **Facebook** apparaît dans la vue de votre jeu.
2. Entrez le **User Token**.
3. Sélectionnez le bouton **Send Success**, comme illustré ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/enter-user-token.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=b3384d650c0264c549d2ef1780c4eb98" alt="Entrer le jeton utilisateur dans la boîte de dialogue d'authentification Facebook" width="903" height="581" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/enter-user-token.png" />

* Vérifiez la sortie de la console. Elle doit afficher nos instructions de débogage, comme illustré ci-dessous.
* Si aucune erreur ne s'affiche, l'authentification a réussi.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/debug-console-output.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=720db9bf8bc65ead9c9ff196c817a2fe" alt="Sortie de la console de débogage" width="698" height="389" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/debug-console-output.png" />

### Exécution de l'application sur Android

Avant de lancer l'application sur Android, vous devez effectuer des étapes de configuration supplémentaires :

* Tout d'abord, vous devez vous assurer que la plateforme Android est sélectionnée et que le **Package ID** unique est défini (comme indiqué dans l'exemple ci-dessous).

<Note>
  Veillez à créer votre propre **Package ID** *unique*.
</Note>

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/set-android-package-id.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=e8bdadc7a8f8bf9ef4318a55f2d28338" alt="Définir l'ID de package Android" width="1178" height="617" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/set-android-package-id.png" />

<Tip>
  **Étape facultative** : installez [Open SSL](https://wiki.openssl.org/index.php/Binaries) et ajoutez-le à la variable d'environnement **PATH**. S'il est absent, Unity génère une erreur sans conséquence pendant la génération. Cette erreur n'arrête pas la génération et n'affecte pas l'exécution.
</Tip>

Ensuite, dans la console de votre **application Facebook** :

1. Accédez aux paramètres **Basic**.
2. Sélectionnez **+ Add Platform**, comme indiqué dans l'exemple ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/facebook-add-platform.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=7ee5741660e7e45cb2a7c81514e1fd1f" alt="Console d'application Facebook : ajouter une plateforme" width="1077" height="742" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/facebook-add-platform.png" />

* Sélectionnez ensuite **Android** dans la liste des plateformes disponibles.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/select-android-platform.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=eac3fadcf67a0ce0c6abc1181dba3781" alt="Facebook : sélectionner la plateforme Android" width="709" height="453" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/select-android-platform.png" />

Un panneau contenant les paramètres propres à la plateforme apparaît.

* Renseignez votre **Package ID**.
* Sélectionnez **Save** (le bouton **Save** est masqué dans le coin inférieur droit de la page).

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/android-platform-settings.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=b6ffafffedb54020a4a0ad1d51ac078b" alt="Paramètres de la plateforme Android" width="821" height="383" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/android-platform-settings.png" />

Générez et exécutez l'application normalement sur votre appareil Android.

* L'application doit vous accueillir avec une page de connexion Facebook.
* Une fois connecté, observez le message à l'écran au fur et à mesure qu'il change.
* Enfin, un message indiquant la réussite de l'authentification dans PlayFab doit s'afficher. L'ensemble de la procédure est illustré dans l'exemple ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/playfab-facebook-auth-on-android.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=73ca707fbe085b61bbeaf369702b2386" alt="Authentification Facebook PlayFab sur Android" width="1285" height="914" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/playfab-facebook-auth-on-android.png" />

### Exécution de l'application sur iOS

Avant de lancer l'application sur iOS, vous devez effectuer des étapes de configuration supplémentaires.

* Tout d'abord, assurez-vous que la plateforme **iOS** est sélectionnée.
* Définissez ensuite un **Bundle ID** unique, comme indiqué dans l'exemple ci-dessous.
* Veillez à créer votre propre **Package ID** *unique*.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/set-ios-bundle-id.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=3599c6de938ed564cc5dc7ae572ea8c8" alt="Définir l'ID de bundle iOS" width="1061" height="616" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/set-ios-bundle-id.png" />

Ensuite, dans votre **Facebook Application Console** :

1. Accédez aux paramètres **Basic**.
2. Sélectionnez **+ Add Platform**, comme indiqué dans l'exemple ci-dessous.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/facebook-add-platform.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=7ee5741660e7e45cb2a7c81514e1fd1f" alt="Console d'application Facebook : ajouter une plateforme" width="1077" height="742" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/facebook-add-platform.png" />

* Sélectionnez **iOS** dans la liste des plateformes disponibles.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/select-ios-platform.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=396c5464cb9dba1c7da77ec8484bc86e" alt="Facebook : sélectionner la plateforme iOS" width="709" height="453" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/select-ios-platform.png" />

Un panneau contenant les paramètres propres à la plateforme apparaît.

* Renseignez votre **Package ID**.
* Sélectionnez le bouton **Save** (le bouton **Save** est masqué dans le coin inférieur droit de la page).

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-platform-settings.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=14c5ccc92e77b857aa2bddf50a6437dd" alt="Paramètres de la plateforme iOS" width="906" height="430" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-platform-settings.png" />

* Générez ensuite l'application comme d'habitude.
* Une fois cette opération terminée, ouvrez le **projet** à l'aide de **XCode**.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/open-ios-project.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=8b1b51af9c293e12e99de0f37348575a" alt="Ouvrir le projet iOS avec XCode" width="770" height="804" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/open-ios-project.png" />

* Sélectionnez le **projet** pour ouvrir **Project Settings**.
* Vérifiez que le **Bundle ID** correspond à votre **Package ID** unique.

<img src="https://mintcdn.com/microsoft-4404708b/wQJwYr9vT-FdsCSx/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-project-settings-verify-bundle-id.webp?fit=max&auto=format&n=wQJwYr9vT-FdsCSx&q=85&s=134ffb82cfab08931fdafae6201a9670" alt="Paramètres du projet iOS : vérifier l'ID de bundle" width="1946" height="1304" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-project-settings-verify-bundle-id.webp" />

* Veillez à sélectionner le bon appareil.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-project-settings-select-device.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=ba4e9bc8666986003c926585554c88e1" alt="Paramètres du projet iOS : sélectionner l'appareil" width="684" height="268" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-project-settings-select-device.png" />

* Et sélectionnez la bonne **Identity Team**.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-project-settings-select-identity-team.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=3875ebcc3d1bdd8c50810b9a94c0ed83" alt="Paramètres du projet iOS : sélectionner l'Identity Team" width="490" height="268" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/ios-project-settings-select-identity-team.png" />

Enfin, exécutez l'application normalement.

* Une fois démarrée, l'application vous permet de vous connecter à Facebook à l'aide du navigateur web.
* Une fois cette opération terminée, l'authentification PlayFab est appelée et un message indique le résultat.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/playfab-facebook-auth-on-ios.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=9ec6a4d3c32ebcad5452e897f98c211e" alt="Authentification Facebook PlayFab sur iOS" width="540" height="720" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/playfab-facebook-auth-on-ios.png" />

### Vérification via PlayFab Game Manager

Ouvrez votre titre PlayFab dans Game Manager.

* Accédez au tableau de bord.
* Consultez le panneau **PlayStream Debugger** pour vérifier les derniers événements. L'événement d'authentification Facebook doit s'afficher, comme dans l'exemple suivant.

<img src="https://mintcdn.com/microsoft-4404708b/mLCHf0iQv3VidfBe/images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/playfab-facebook-auth-event.png?fit=max&auto=format&n=mLCHf0iQv3VidfBe&q=85&s=f9d6980c6cef4ca74b9747a5d55d3c45" alt="Événement d'authentification Facebook dans PlayStream Debugger" width="868" height="258" data-path="images/playfab/identity/player-identity/platform-specific-authentication/tutorials/facebook-unity/playfab-facebook-auth-event.png" />

À ce stade, vous avez correctement intégré l'authentification Facebook pour PlayFab.


## Related topics

- [Authentification spécifique à la plateforme](/fr/services/playfab/identity/player-identity/platform-specific-authentication/index.md)
- [Configuration de l'authentification PlayFab avec Facebook et HTML5](/fr/services/playfab/identity/player-identity/platform-specific-authentication/facebook-html5.md)
- [Configuration de l'authentification PlayFab avec Kongregate et Unity](/fr/services/playfab/identity/player-identity/platform-specific-authentication/kongregate-unity.md)
- [Configuration de l'authentification PlayFab avec Steam et Unity](/fr/services/playfab/identity/player-identity/platform-specific-authentication/steam-unity.md)
- [Configuration de l'authentification PlayFab avec Google et HTML5](/fr/services/playfab/identity/player-identity/platform-specific-authentication/google-html5.md)
