- Home /
Facebook friends leaderboard (Android)
I've been searching all over for a solution to this and have had no luck so far.
I'd like to have a leaderboard that compared scores between facebook friends. I've already got the facebook login working, but I can't for the life of me get a scoreboard working. All the solutions I've found are outdated, and there doesn't even seem to be a purchasable solution on the asset store.
This page: https://developers.facebook.com/docs/games/services/scores-achievements leads me to believe it's an intended function of the Scores API, but I can't for the life of me find a working example anywhere (including the one facebook gives, as it was last updated in August)
Any help or even just a nudge in the right direction would be greatly appreciated, as this has been the only real hangup in the development of our game thus far.
Thanks!
Still looking for a current solution to this problem, as there is see$$anonymous$$gly a way built-in to do this without a custom server as @FortisVenaliter mentioned.
Answer by FortisVenaliter · Feb 01, 2017 at 07:23 PM
Best thing I can think of would require you to code a custom server. It could save the high scores with User IDs. Then, when you cross-reference with the facebook friends, you could request the high scores from members that also have a facebook ID linked to the game from the server.
It's probably possible to do that P2P without a server, but that would be a whole separate mess.
Check out this page: https://developers.facebook.com/docs/games/services/scores-achievements
Specifically the "Create or update a player's score" section has lead me to believe it's possible to achieve a leaderboard without all of that custom setup. $$anonymous$$aybe I'm misreading, but I've also found old tutorials that claim to do just that, but there is nothing current available that explains how to do it.
Answer by todorv · Feb 17, 2017 at 08:24 AM
@DMHMikeCook you should watch the tutorial made by GreyZoned on youtube. It is outdated but I managed to make it work by changing some lines. Just read the errors.
This is the link https://www.youtube.com/watch?v=2Xt5ae7GUx8&t=375s
Your answer
Follow this Question
Related Questions
Facebook Login - Android 1 Answer
Facebook Android Studio 0 Answers
App Link URL for Facebook App Invite 1 Answer
Facebook SDK(android) - error 1 Answer
PlayFabTitleId is null. 1 Answer