Roblox has launched the GetFriendsWhoPlayed API in beta, enabling developers to efficiently retrieve a list of friends who have previously played their game. This new tool significantly reduces DataStore read requirements, facilitating the creation of high-performance friend leaderboards and social features.
Vibe score
-100 to +100
Are there any plans to overhaul ordered data stores? They are kind of limiting, idk if other people agree
This topic was automatically opened after 10 minutes.
I have played games that take a random user from my friend list and tells me to invite them. Now games will know who has played the game before and now it can be used to guilt trip people into inviting their friends to increase the player count! Now they can figure out which friends to throw in my f
Useful and cool but can we get more data besides just a UserId, like first time played and last time played?
This is pretty cool, actually. I could see a lot of cool things being done with this API, kinda like the friend status updates on Steam or what have you. sammy: […] can we get more data besides just a UserId, like first time played and last time played? I think you would probably need to save that y
paracosm daemon: I think you would probably need to save that yourself in a datastore It’d be much more efficient if this was provided by the API instead so that developers don’t need to burn through even more of the datastore budget whenever they need this information.
PMRoblox_1190: The API respects existing privacy and blocking rules. It is not designed to expose additional social data beyond what policies already allow. I just tested this API and this is not the case. The API exposes your friend’s UserId even if they have all of these privacy settings turned of
Cool I guess We need friends who still play on Roblox first though, so I think this update came just a little too late.
PMRoblox_1190: Global leaderboards will come later this year Forgive me if I’ve missed something, what exactly is this?
cool, but what about the fact that new devs cant even test this without going through the tedius effort of setting up trusted friends? just remove the R$ and 500 adult requiremtns, or make them smaller for new devs PLZ
The documentation says that the API returns an array of UserIDs, but in your provided example it returns an array of objects with an entry for the UserID. So which one is it?
This is such a useful concept. It solves a problem everyone was facing but nobody was noticing.
It should be an array of UserIDs, the above example has also been updated. Thanks for asking!
I love this GetFriendsWhoPlayed API! It will really help with social features! P.S. I’m under a severe thunderstorm warning right now. Hopefully this storm passes for me without any trouble! edit: the storm is over
why is this marked as the solution?? lol image 1170×1851 422 KB
why is this the solution im crying
Inkthirsty: This will be a great way to reconnect with old friends and challenge them through games that they forgot they once joined. I can also make fun of my friends knowing that they stepped foot in the games I play. Now I c W SOLUTION SONION FRUIT SONCH SONBRERO
LMAOOO this is marked as the solution IMG_1786 1179×2556 346 KB jokes aside, does this update respect the privacy setting that lets you disable the friends activity update? if no please implement it
for thoses that mabye don’t know what privacy toggle im talking about, i’m talking about this specific toggle. IMG_1788 1179×394 33.9 KB
Is there a way to get information on whether that friend is currently in the game? I use this API but it’s quite slow to give responses (sometimes incorrect ones). TeleportService:GetPlayerPlaceInstanceAsync()
Maybe try making a MemoryStore that keeps track of where in your game each player is?
https://create.roblox.com/docs/reference/engine/classes/Player#GetFriendsOnlineAsync