Skip to main content
This guide shows you how to integrate PlayFab Party for voice, chat, and data networking, along with PlayFab Multiplayer for lobby and matchmaking services using the unified SDK.

Prerequisites

Before you begin, ensure you have:
  • Completed the core SDK setup and authentication
  • An authenticated PFEntityHandle from the login process
  • Your PlayFab Title ID configured in Game Manager
  • Basic familiarity with asynchronous programming patterns
This guide assumes you’ve already initialized the PlayFab SDK and authenticated a player following the core quickstart guide. If you haven’t done so, please complete that guide first.

What you’ll accomplish

By the end of this quickstart, you’ll have:
  • Initialized PlayFab Party for networking and chat
  • Created a local user and chat control
  • Set up a Party network for communication
  • Initialized PlayFab Multiplayer and created a lobby
  • Understood cleanup procedures for Party and Multiplayer resources

Headers and includes

Required headers

Include SDK headers in your header files to access PlayFab Party and Multiplayer functionality:

Implementation files

Include PartyImpl.h in your implementation files and use the Party namespace:

Step 1: Initialize PlayFab Party

Initialize PlayFab Party by creating a singleton reference to the PartyManager and configuring it with your title ID and optional task queues for advanced thread control.
The audioTaskQueue and networkingTaskQueue parameters allow you to provide custom XTaskQueue instances for fine-grained control over threading. Set them to nullptr to use default threading behavior.

Step 2: Create a local user

Create a local user object to represent the authenticated player on the device. This user is required for all networking and chat operations.

Step 3: Create a chat control

Create a chat control to manage voice and text chat operations for the user on this device.
The chat control handles audio input/output and enables voice communication features.

Step 4: Create a Party network

Create a Party network—a secured collection of devices and users that can exchange chat and data. A Party network typically aligns with your game’s multiplayer session or lobby concept.
Ensure you provide a valid, unique network identifier (GUID) in the PartyInvitationConfiguration. This ID is used by other players to join your network.
🎉 Congratulations! You’ve successfully set up PlayFab Party networking and chat.

Step 5: Initialize PlayFab Multiplayer

Initialize the PlayFab Multiplayer service to enable lobby and matchmaking functionality.

Step 6: Create a lobby

Create a lobby to manage player groups before starting a match. Lobbies support features like owner migration and access control.
🎉 Excellent! You’ve now set up both Party networking and Multiplayer lobby services.

Cleanup resources

When your game shuts down or you need to clean up PlayFab resources, ensure proper cleanup in the correct order:
Always clean up resources in this order: Party, Multiplayer, Entity handles, Service config, then PlayFab Services.

Next steps

Now that you’ve set up Party and Multiplayer, explore these additional features:

Party networking features

  • Voice chat - Enable real-time voice communication with Azure Cognitive Services integration
  • Text chat - Implement text messaging with translation and moderation
  • Data channels - Send custom game data between players
  • Network management - Handle player connections, disconnections, and network events

Multiplayer lobby features

  • Matchmaking integration - Connect lobbies with PlayFab matchmaking
  • Lobby properties - Store and sync game settings and metadata
  • Member data - Share player-specific information within the lobby
  • Search and discovery - Find and join public lobbies

Core concepts

Reference documentation

Last modified on August 10, 2026