Available in Classic and VPC
This is a console user guide for using the Facebook login feature.
See Meta for Developers for instructions on using the console other than integrating with GAMEPOT.
Facebook Developer Platform: https://developers.facebook.com
Set Facebook login
To use Facebook login, add the Facebook login information in the Assets > Plugins > Android > launcherTemplate.gradle file.
resValue "string", "facebook_app_id", "" // optional (facebook)
resValue "string", "fb_login_protocol_scheme", "" // optional (facebook)
resValue "string", "facebook_client_token", ""
- Facebook App ID
- Facebook Protocol Scheme
- Facebook Client Token
How to check Facebook app ID, protocol scheme, and client token information
- Click Create app > App settings > Basic settings menus, in that order, and then check the App ID.Note
Check the following before creating the app.
- Select features needed for the app > Select Authentication via Facebook login and request for user data > Are you building a game? > Select "No, I'm not building a game.
(You must follow these selections to add email permissions to the permissions settings)
:::

- Enter the App ID to the Facebook App ID field in the GAMEPOT dashboard.
- Attach fb in front of the Facebook App ID and enter it in Facebook Protocol Scheme.
- <e.g.> If Facebook App ID is 123abc, enter fb123abc for Facebook Protocol Scheme.

- Enter the content of the client token in App settings > Advanced settings in Facebook Client Token.

- In App settings > Basic settings, click Add platform, and then select Android/iOS platform.

- Enter the Android information.

- 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.
- Enter the iOS information.

- Bundle ID: Enter the bundle ID from App Store Connect - App Information.
- iPhone Store ID: Enter the Apple ID.

- Come back to the dashboard, and then click Facebook login button addition custom settings.

Click the [Add] button of the email, and check if the public_profile section is added.

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]
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.
(e.g.) If the app ID is 1822222222222222, URL Schemes is fb1822222222222222.

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.
