find self rank in "friends leaderboard" though i am not in top 10

0 votes
Hi,
I have used GetUserRaking API. But this gives rank in global leaderboard.
We are showing 3 leaderboards.
>global leaderboard
>local leaderboard
>friends leaderboard(facebook).
 
Suppose i am finding friends leaderboard using getTopNRankersFromFacebook API. And my 10 friends scored greater than me. So I will not present in friends leaderboard. Still I want to show 11th entry as me but with my rank..
If my rank in friends leaderboard is 21th that means among my friends i am 21th. I want to find that rank and need to show only 11 entries in UI.
asked Nov 25, 2016 in Android by appon.dev (10 points)

1 Answer

0 votes

Hi Appon,

 

As of now, there is no such method from which you can directly fetch the rank of users among your friends. However, it can be achieved by applying the custom logic on the application:

  • Fetch the list of your Facebook friends using social API
  • Pass the list of above users in chunk of 50 or 100 to GetTopNRankersByGroup API 
  • Save the rank on local system based after fetching the records from Game object 

Let me know if you need any help from my side while writing the above logic. 

Regards,

Himanshu Sharma

answered Nov 28, 2016 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...