Facebook

Prev Next

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.

Note

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", "" 
  1. Facebook App ID
  2. Facebook Protocol Scheme
  3. Facebook Client Token

How to check Facebook app ID, protocol scheme, and client token information

  1. 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)
    :::
    gamepot-facebook04.png




  1. Enter the App ID to the Facebook App ID field in the GAMEPOT dashboard.
  2. 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.
    gamepot-facebook02.png




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




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




  1. Enter the Android information.
    gamepot-facebook08.png
  • 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.




  1. Enter the iOS information.
    console_facebook01.png
  • Bundle ID: Enter the bundle ID from App Store Connect - App Information.
  • iPhone Store ID: Enter the Apple ID.

console_facebook02.png




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

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


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.

gamepot-facebook12.png

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