GetFriendsAsync doesn't return all friends of players with many friends

When looping through the pages object of the following call:

game.Players:GetFriendsAsync(userId)

For users with more than 200 friends/connections, the results are often inconsistent. Despite returning more than 200 results, they don’t return all the friends/connections of the specified user(as if there’s a break occurring during the search). Also, when looking at the amount of friends returned per friend pages iteration(when advancing to next page) the number of that isn’t consistent either(for example in one of my searched the results were 31, 27, 34, 41, 30, 41, 29 which looks messy, also the sum of them was 233 while the real amount of connections the user has is 343).

Expected behavior

When I make a call to this API, I expect to fetch all the user’s friends/connections when looping over the returned pages object. Also, ideally, I want each page to have a constant amount of results(for example 50), except the last page that can have less than that.

A private message is associated with this bug report

1 Like

Is this still not fixed? I’m surprised this hadn’t ever received any replies, given how significant of a bug this seems to be.