--- title: "Facebook integration" slug: "game-gamepot3-facebook-integration" updated: 2026-09-17T09:17:40Z published: 2026-09-17T09:17:40Z canonical: "guide.ncloud-docs.com/game-gamepot3-facebook-integration" --- > ## Documentation Index > Fetch the complete documentation index at: https://guide.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Facebook integration Available in Classic and VPC This is a console user guide for using the Facebook login feature. For instructions on using the console other than integrating with GAMEPOT, see the following. - [Meta for Developers](https://developers.facebook.com/docs/en/facebook-login/) - Facebook Developer Platform: [https://developers.facebook.com](https://developers.facebook.com/) ## Register Facebook login authentication information on GAMEPOT dashboard The following describes how to register a Facebook authentication key to the dashboard. Click the GAMEPOT dashboard > **Project settings** > **Authentication** > **Facebook** menus, in that order. ![gamepot-facebook0.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook0.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) ## Set Facebook login To use Facebook login, enter the following three items in the GAMEPOT dashboard > **Project settings** > **Authentication** > **Facebook**. ![gamepot-facebook11.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook11.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) 1. Facebook App ID 2. Facebook Protocol Scheme 3. Facebook Client Token ### Precautions when creating app 1. Select **Use Cases** > **Features needed for the app** > "Authenticate and request data from users with Facebook Login," and then create the app. ![console_facebook03](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/console_facebook03.avif?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) 2. After app creation is completed, select **Customize Facebook login button**, and then add "email" under Permissions. ![console_facebook04](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/console_facebook04.avif?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) ![console_facebook05](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/console_facebook05.avif?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) ### Check Facebook login settings 1. Enter **Create App** > **App Settings** > **Basic Settings**>App ID into **Facebook app ID** of the GAMEPOT dashboard. ![gamepot-facebook04.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook04.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) 2. Attach "fb" in front of the "Facebook app ID" and enter it in **Facebook protocol scheme**. ![gamepot-facebook02.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook02.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) 3. Enter the content of the client token in **App Settings** > **Advanced settings** in **Facebook client token**. ![gamepot-facebook03.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook03.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) 4. Click **App Settings** > **Basic Settings**>**Add Platform**, and then select **Platform**. ![gamepot-facebook06.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook06.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) 5. Enter the Android information. ![gamepot-facebook08.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook08.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) - **Key hash**: Enter the key has value in use. - **Package name**: Enter the package name. - **Class name**: Enter by attaching .MainActivity at the end of the package name. 6. Add the iOS platform, and then enter the information. - Bundle ID: Enter the same bundle ID from App Store Connect. ![console_facebook06](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/console_facebook06.avif?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) ### Enter URL schemes for Unity (iOS) In the case of Unity, to integrate Facebook on iOS, enter the Schemes value in Supported URL Schemes as shown below. **[Location of iOS URL Schemes for Facebook login v3]** The content to be entered into Facebook URL Schemes can be checked using the following method. - The value of **App ID** checked from Facebook console > **App Settings** > Basic Settings with **fb** appended to it. If the app ID is 1822222222222222, URL Schemes is fb1822222222222222. ![gamepot-facebook12.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook12.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) Enter the iOS URL scheme issued by Facebook in Player Settings -> Other Settings -> **Supported URL Schemes** as shown in the picture. - If you enter "1" for size, an Element 0 field appears and you can enter it. ![gamepot-facebook13.png](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/gamepot-facebook13.png?sv=2026-02-06&spr=https&st=2026-11-14T05%3A10%3A24Z&se=2026-11-14T06%3A10%3A24Z&sr=c&sp=r&sig=UaLnzodK9j43sHIR2n1hRTnUg5Jn1R9B9yEtw5uy4%2Fs%3D) ### Replace code in AppDelegate.swift method (iOS native) Replace the code in the AppDelegate.swift method using the following code. This code initializes the SDK when the app starts and allows the SDK to handle Facebook native app login and sharing when performing login or sharing tasks. ``` // AppDelegate.swift class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { ApplicationDelegate.shared.application( application, didFinishLaunchingWithOptions: launchOptions ) } func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { let sceneConfiguration = UISceneConfiguration(name: nil, sessionRole: connectingSceneSession.role) sceneConfiguration.delegateClass = SceneDelegate.self return sceneConfiguration } func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { ... // Facebook login callback NotificationCenter.default.post(name: Notification.Name("FacebookLoginURL"), object: nil, userInfo: ["application": application, "url": url, "options": options, "type": "AppDelegate"]) ... return true } } class SceneDelegate: UIResponder, UIWindowSceneDelegate { func scene(_ scene: UIScene, openURLContexts URLContexts: Set) { guard let url = URLContexts.first?.url else { return } ... // Facebook login callback NotificationCenter.default.post(name: Notification.Name("FacebookLoginURL"), object: nil, userInfo: ["url": url, "type": "SceneDelegate"]) ... } ```