Now that the last online endpoint from the Presence API is deprecated and only returns the 15th of this month, is there any other way to at least estimate the last time a user was online? Pretty much all I can say, as there is little to no information on this.
Found a possible solution using the API.
- First, get the last badge the user got, many games use badges, so this is possibly the best way to estimate it. You can do this by getting
https://badges.roblox.com/v1/users/{userId}/badges?sortOrder=Desc
, the first index ofdata
is the last badge the user got, store its ID. - Get
https://badges.roblox.com/v1/users/{userId}/badges/{badgeId}/awarded-date
, it returns an object withawardedDate
, which is an ISO date string.
In-game, you can use a proxy, but this is the best way to do this. You can also do it based on the last asset-update by the user, but that’s much more complicated and doesn’t apply to the majority of users.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.