question

wsjang avatar image
wsjang asked

About the ranking system...

I am trying to implement a ranking system.

Like Facebook or Instagram, if you click "Like", the ranking will be tallied by that number.

But the question is, if two or more people press "Like" on one post at a time, is there any problem with counting?

Player DataLeaderboards and Statisticsmultiplayer
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

wsjang avatar image wsjang commented ·

Will there be no omissions for the count?

0 Likes 0 ·

1 Answer

·
Neils Shi avatar image
Neils Shi answered

According to the post’s tag, It looks like you want to implement your functionality with Player Data or statistics. PlayFab's Player Data does not have a rank function, and we only have rank on statistic, but it cannot carry the contents. You may try to use Economy V2 UGC to implement it. PlayFab User Generated Content (UGC) empowers your players to create, upload, and search for content. And it has a review system, players can attach a rating or review to an item by calling the ReviewItem API, but PlayFab doesn't have a native feature like you claim (people press "Like" on one item). When a player finish rating an item, the total count of this item's rating will be incremented by one. You can think of this "total count" as a "Like", then players can use API SearchItems to execute a search against the public catalog using the provided search parameters(you can set the search parameters to the descending order with total count, in this way, the rank function of "Like" can be realized).

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.