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.
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.
@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?
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.
2 People are following this question.