Basic Usage
Sending a Game Request
Request Types
Send Request
Send an object to friends (e.g., send a gift):Ask For Request
Ask friends for an object (e.g., request lives):Turn Request
Notify friends it’s their turn in a game:Targeting Recipients
Specific Friends
Send requests to specific friends:Suggested Friends
Suggest specific friends in the dialog:You cannot use both
recipients and suggestions in the same request. Use recipients to send to specific users, or suggestions to pre-populate the friend selector.Filtering Recipients
App Users Only
Show only friends who already use the app:Non-App Users
Show only friends who don’t use the app (for invitations):Custom Request Data
Adding Tracking Data
Include custom data for tracking (max 255 characters):Custom Title
Set a custom title for the request dialog:Complete Examples
- Invite Friends
- Request Lives
- Challenge Friend
- Turn-Based Game
TypeScript Support
GameRequestContent Type
API Reference
GameRequestDialog Methods
GameRequestContent Properties
GameRequestDialogResult Properties
Best Practices
- Always check canShow() before attempting to show the dialog
- Use actionType appropriately - Choose the right type for your use case
- Include meaningful data - Track request sources and contexts
- Keep messages clear - Use concise, action-oriented language
- Don’t spam - Limit how frequently users can send requests
- Target wisely - Use filters to show relevant friends
- Handle cancellations - Users may cancel the dialog, handle gracefully
Limitations
- Cannot use
filterswithsuggestions - Cannot use
recipientswithsuggestions datafield is limited to 255 charactersobjectIdis required whenactionTypeis ‘send’ or ‘askfor’- Game requests are designed for gaming apps only