Social Network Invites
Configuration is done via the Settings Inspector in Unity.
Configuration is applied automatically at build time for each platform.
Platform markers
The following markers are used to indicate platform availability of parameters and features:
- (no marker) — Shared parameter or feature
- 🍏 — iOS-specific parameter or feature
- 🤖 — Android-specific parameter or feature
- ⚠️ — Not implemented in the Unity plugin yet
Ask your release manager for the required parameters before configuring the SDK.
Configuration
This feature requires Facebook Authorization to be set up.
Additional Parameters
| Field | Description |
|---|---|
| Facebook Invite String | Facebook invite string |
Usage
To show the Facebook invite dialog:
P101XP.GetInstance().ApplicationInvite();
Callback
private bool OnInviteResult(InviteResult result)
{
// Handle invite result
}
P101XP.GetInstance().InviteEvent += OnInviteResult;
Result Payload Object
public class InviteResult
{
public bool invited;
public string error;
}