Skip to main content

Aghanim-Facebook Login Integration

This guide explains how to integrate Aghanim with Facebook Login to allow users to authenticate using their Facebook accounts when accessing your game hub.

Requirements

Step 1: Get Your Facebook App ID

If you already have a Facebook app set up for your game application, you can skip the app creation and simply locate your existing App ID.

  1. Go to the Facebook Developers Portal.
  2. If you need to create a new app:
    • Click Create App
    • Select Consumer as the app type and click Next
    • Enter an app name and contact email, then click Create App
    • Under Add a Product, locate Facebook Login and click Set Up
    • Choose Web as the platform and add your authorized redirect URIs:
      https://<GAME_HUB_DOMAIN>/oauth2/facebook/callback
      Replace <GAME_HUB_DOMAIN> with your game hub's domain (e.g., demo.aghanim.com)
  3. Copy the App ID (Client ID) for use in the next step.
Facebook Login
Facebook Login

Step 2: Configure the Integration in Aghanim

  1. Go to the Aghanim Dashboard → Aghanim ConnectFacebook Login.
  2. Fill in Client ID – the Facebook App ID from the previous step.
  3. Click the Install button to enable the integration.
Facebook Login
Facebook Login

Step 3: Configure the Login Method on the Game Hub

  1. Navigate to GameSettings in the Aghanim dashboard.
  2. Under Game hub login look & feel, click the Login methods dropdown.
  3. Select Facebook from the list of login options.
  4. Click Save changes.
Facebook Login
Facebook Login

Step 4: Set Up Player Verification

Set up player verification by following the Social Authentication guide.

Once configured, users will be able to sign in to your hub using their Facebook account credentials.

Need help?
Contact our integration team at integration@aghanim.com