-1

I'm using parse.com to save my game score. I'm also using Facebook sdk in my game. In my game there is two leader-board that's why I'm using parse.com to save users and user's friends score. But Don't know how to get top 10 Facebook friends high score and how to save Facebook user score.

Sourav Mishra
  • 501
  • 4
  • 21

1 Answers1

0
  1. You need to use Facebook SDK for Unity to get user's and friends' profile data.
  2. Create an Object for Player at Parse using This Guide.
  3. Save friends ids as comma separated string as an field of Player table.
  4. Retrieve all of friends data using Parse Queries given in guide. use this query to sort by score:

    var query = ParseObject.GetQuery("GameScore")
    .OrderBy("score")
    .ThenByDescending("playerName");
    
Umair M
  • 10,298
  • 6
  • 42
  • 74