question

avimon avatar image
avimon asked

Photon chat or PlayFab friends?

Can anyone tell me whats best for me to use to invite friends for matchmaking, either photon chat of playfab friends API calls. Please explain me in detail about the procedure.

Friends
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The PlayFab GetFriendsList call returns the Lobby ID of the session the player is in, if that's a custom game server.

The Photon Chat invitation is for use with Photon Chat, which is a distinct service.

So basically, the question is, are you using Photon Chat (or Photon Realtime), or are you using hosted game servers? If it's the former, use Photon matchmaking. If it's the latter, using PlayFab matchmaking.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avimon avatar image avimon commented ·

@Brendan I am using PUN for game services. Can't I use combination of both playfab friends API and photon chat at the same time?

0 Likes 0 ·
brendan avatar image brendan avimon commented ·

The Photon service does not have access to the PlayFab friends list and vice-versa. Of course, since Photon doesn't persist the friends list on their side, they recommend using an external service to store friends (https://doc.photonengine.com/en-us/pun/current/lobby-and-matchmaking/userids-and-friends). So the way to do this would be to use GetFriendsList from PlayFab to get the list of friends that you can then add to Photon, for purposes of using their matchmaker to find Rooms with friends, if your goal is to use Photon Realtime/PUN.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.