Social Network Invites
The SDK supports sending application invites through Facebook.
1. Configure
Configuration is done using the
Settings Inspector → Facebook section
inside the iOS and Android tabs.
2. iOS Configuration
Fill in the following fields
(ask your release manager for correct values):
- Facebook Enabled — enable/disable Facebook integration on iOS
- Facebook Auth Enabled — enable/disable Facebook Authorization on iOS
- Facebook App Id — your Facebook project ID
- Facebook ClientToken — Facebook Client Token
- Facebook Invite String — customized invitation message
3. Android Configuration
Under the Android → Facebook section, configure:
- Facebook Enabled — enable/disable Facebook integration
- Facebook Auth Enabled — enable/disable login through Facebook
- Facebook Game Link — link to the game's page on Facebook
- Facebook Game Preview — preview image for Android app invites
Note: Android does not use Facebook Invite String — this is iOS-only.
4. Usage
To show the Facebook invite dialog:
P101XP.GetInstance().ApplicationInvite();
The message shown in the invite dialog is taken from:
- iOS:
Facebook Invite String - Android: Facebook Game Link + Preview (preview content controlled by Facebook)