Leaderboard using the facebook SDK

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

App42 SDK allows a developer to save game score of a user and to maintain a leaderboard among the friends in Facebook and that too with global ranks. This is a sample for saving Facebook user score and displaying leaderboard among Facebook friends and also showing the global ranks in a game. They have ready-made function returns the specified number of top rankers in a specific game.
Here is Getting-Started link with supported SDK’s, leaderboard API and social Leaderboards in Unity and Facebook SDK

Look into my plugin. Hope it’ll serve the purpose.
You can use it. It’s simple and easy and not using anything else other than the official facebook sdk for unity.