Get an User's current Game presence

I want to display my player’s friends along with Presence information such as what current game they’re playing

So I’m using this Roblox endpoint to get my user’s online presence information: https://presence.roblox.com/v1/presence/users

Which works fine when I use it on my machine or on the swagger documentation (Swagger UI), but whenever I use it on my Roblox game it doesn’t seem to return information such as LastLocation, GameId, PlaceId and other stuff. Im assuming it’s because it doesn’t use my cookie, should I try to pass in one of my alt accounts cookie’s???

Are there any other solutions or have I been doing something wrong? (no errors/warnings btw)

I know that there’s a solution because I’ve seen games such as Friend Checker achieve this. (Screenshot shows my friend viscera clearly playing Murder Mystery 2 so somehow they got the current game Id)

Any help is appreciated

2 Likes

Try using the player:GetFriendsAsync() method alongside GetPlayerPlaceInstanceAsync

altough this might be inneficient

:GetFriendsAsync() doesn’t return gameIds and :GetPlayerPlaceInstanceAsync only works for the Place it was executed in

I believe I have found a way (haven’t tested yet) There is a :GetFriendsOnline method in the player class which returns EXACTLY what I was looking for but I haven’t tested it yet!

Edit: This method returns even more than what I was looking for
Edit2: It works!!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.