I am trying to build facebook leaderboard in unity3d for android platform. I have seen the facebook api for scores.I have been using the friend smash example . I am able to successfully post the score using :
var query = new Dictionary<string, string>();
query["score"] = Instance.score.ToString();
FB.API("/me/scores", Facebook.HttpMethod.POST, delegate(FBResult r) { Util.Log("Result: " + r.Text); }, query);
I am also able to successfully request the score by using : FB.API("/app/scores?fields=score,user.limit(20)", Facebook.HttpMethod.GET, ScoresCallback);
But the problem is I get the score for only one user (The user who is logged in). I want a way in which to get the scores of all facebook friends who play the same game.(I think we can put a limit of 20).
How can this be done?
P.S : I have also tried using app42 platform api's but it gives the same result.