• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DMHMikeCook · Feb 01, 2017 at 09:14 AM · androidfacebooksdkleaderboardcompare

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!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DMHMikeCook · Feb 13, 2017 at 04:51 PM 0
Share

Still looking for a current solution to this problem, as there is seemingly a way built-in to do this without a custom server as @FortisVenaliter mentioned.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DMHMikeCook · Feb 01, 2017 at 08:27 PM 0
Share

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.

avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Facebook SDK v7.2 login not working when on android 2 Answers

Android app crashes on launch after removing Facebook SDK 1 Answer

How to remove Facebook SDK from project when I don't need that? 1 Answer

Facebook SDK login problem on Android 0 Answers

facebook sdk not compiling on android 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges