How do I get someone's friends?

  1. What do you want to achieve? Keep it simple and clear!

How to obtain the friends of a player and see if the player that just joined is friends with that player.

  1. What is the issue? Include screenshots / videos if possible!

I don’t know how.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have looked in the dev forum and google, with no solution at all.

I would appreciate any help!

2 Likes

I think you’ll find IsFriendsWith to be what you’re looking for.

3 Likes

Thanks man! that will help me a lot.

1 Like

There’s two different questions being asked here with the solution being one half. IsFriendsWith can be used to check if a player is friends with another. To get a user’s friends, use GetFriendsAsync. To gain further data about online friends (e.g. what game they’re currently playing), use GetFriendsOnline.

1 Like