Facebook Login
This guide is for using the console to enable Facebook Login.
For information on using the console outside of GAMEPOT integration, please refer to Meta for Developers.
Facebook Developer Platform: https://developers.facebook.com
Registering Facebook Login Authentication Information in GAMEPOT DashboardTo register the Facebook authentication key in the GAMEPOT dashboard, follow these steps: GAMEPOT Dashboard > Project Settings > Authentication > Facebook menu.

Facebook Login SettingsTo use Facebook Login, you need to enter the following three items in the GAMEPOT Dashboard > Project Settings > Authentication > Facebook.

Facebook App ID
Facebook Protocol Scheme
Facebook Client Token
How to Check Facebook App ID / Protocol Scheme / Client Token Information
(Important) Things to be aware of when creating the app:
In the Use Case section, select the required features and choose "Authenticate and request user data via Facebook Login" before creating the app.

After creating the app, select "Add Facebook Login button customization" > Permissions > Add "email".


Checking Facebook Login Configuration Values
1. Facebook App ID
Go to App Creation > App Settings > Basic Settings > App ID.

2. Facebook Protocol Scheme
Prefix the 'Facebook App ID' with 'fb' and enter it in the "Facebook Protocol Scheme" field.

3. Facebook Client Token
In App Settings > Advanced Settings, enter the Client Token information in the "Facebook Client Token" field.

4. Add Platform
1) Android
In App Settings > Basic Settings, click "Add Platform" and choose Android.

Enter Android-specific information.

Key Hash: Enter the SHA-1 key hash value you are using.
Package Name: Enter the package name.
Class Name: Append ".MainActivity" to the package name and enter it.
2) iOS
Go to App Settings > Basic Settings, then click "Add Platform" and select iOS.

Enter the iOS information.

Bundle ID: Enter the Bundle ID that matches the one in App Store Connect.
For Unity, URL Schemes Entry (iOS)
For Unity, to integrate Facebook on iOS, you need to enter the Scheme value in the "Supported URL Schemes" as follows:
[Where to obtain the iOS URL Schemes for Facebook Login]
To find the content for the Facebook URL Schemes, you can follow these steps:
Go to Facebook Console > App Settings > Basic Settings and add "fb" before the APP ID. (Example: If the APP ID is 1822222, the URL Scheme will be "fb1822222").
In Unity, go to Player Settings -> Other Settings -> Supported URL Schemes, and enter the Facebook-provided iOS URL Scheme as shown in the image.
Entering '1' in the size field will create an Element 0 box for you to input the value.

Replace the Method Code in AppDelegate.swift (iOS Native)
Replace the method code in AppDelegate.swift with the following code. This code initializes the SDK when the app starts and ensures that the SDK handles login and sharing actions via the Facebook native app.
Last updated