how to share high score in my android game and find 10 best scores using facebook sdk -


my problem how share highscore in facebook app. have android game written eclipse , can correctly connect through facebook using facebook sdk , facebook loginbutton.

i need have of game player's high scores , compare them , find 10 best scores of of users. searched lot , found using graph api me that. used code in https://developers.facebook.com/docs/graph-api/reference/v2.4/user/scores in eclipse wanted share scores:

bundle params = new bundle();     params.putstring("score", "the score game");     new graphrequest(accesstoken.getcurrentaccesstoken(), "/me/scores",      params, httpmethod.post, new graphrequest.callback() {         @override         public void oncompleted(graphresponse response) {             // todo auto-generated method stub         }      }).executeasync(); 

but go graph api explorer, able own score:

/me/scores 

but need have of user's scores , compare them each other. idea if have me in kind of sharing. , aware me if graph api not way case. have checked similar questions didn't find clear way.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -