Hello,
[Solved]
I am trying to make a leaderboard using the facebook unity sdk(for android devices in my case) I have most of the code down and it works just fine in the editor and on phone.
I can post my score as well as retrieve it in the editor using my access token.
I can also post and retrieve my score on an android where I logged in with my id.(the one to which the app is connected)
But here’s the problem:
When I try logging in with another account I can neither post my score nor can I retrieve it.
though I can get the username, profile pic of the account with which I am logged in as No.1 but the score remains 0.
Even the score of my other account isn’t visible in the leaderboard.
What I deduced:
As it’s mentioned on the Scores API page you require the publish_actions permission to post scores I believe this is what I am missing. But this does not explain why I am unable to see my score posted from my (developer) account.
Note: I am trying to use FB.API(“/me/scores”, Facebook.HttpMethod.POST, publishActionCallback, ScoreData)
and FB.API(“/MYAPPID/scores”, Facebook.HttpMethod.GET, CallbackFriendScores) to get the scores.
Any help would be appreciated,
Thank you.
mail: tobiuchiha1010@gmail.com