Skip to main content
Game Requests allow players to invite their friends to play a game or re-engage friends who haven’t played in a while. This feature is specifically designed for gaming applications.

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):
You cannot use filters together with suggestions. If you need to suggest specific friends, you cannot also apply user filters.

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

TypeScript Support

GameRequestContent Type

API Reference

GameRequestDialog Methods

GameRequestContent Properties

GameRequestDialogResult Properties

Best Practices

  1. Always check canShow() before attempting to show the dialog
  2. Use actionType appropriately - Choose the right type for your use case
  3. Include meaningful data - Track request sources and contexts
  4. Keep messages clear - Use concise, action-oriented language
  5. Don’t spam - Limit how frequently users can send requests
  6. Target wisely - Use filters to show relevant friends
  7. Handle cancellations - Users may cancel the dialog, handle gracefully

Limitations

  • Cannot use filters with suggestions
  • Cannot use recipients with suggestions
  • data field is limited to 255 characters
  • objectId is required when actionType is ‘send’ or ‘askfor’
  • Game requests are designed for gaming apps only