Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Think like how Bejeweled 2 does its Blitz mode where it connects to Facebook, pulls your friends names and their top scores for the week. Are there any libraries, etc. that already help facilitate this process? I would rather not re-invent the wheel if necessary.

share|improve this question

Check out the Mochi Media Scores API as a general purpose leaderboard system. If you could get the list of friend IDs from Facebook you might be able to leverage it to create one.


You probably already know how to do this yourself, but if you wanted to implement it, you could do something like this...

First, create a database of scores, where each row has player's Facebook ID, score and date/time of score. Every time someone plays your game, record the score along with their Facebook ID and the current date/time.

To generate a friends scores leaderboard for someone, query Facebook for a list of the person's friends, specifically their IDs. Then query your scores database for entries matching the given IDs. Generate the leaderboard you want.

share|improve this answer
Does this API also applies for Java-Android programming? I really want to put a notification onto my Android game app to ask if you want to display high score or achievements. I'm currently using Eclipse IDE for Java developers and LibGDX engine. – David Dimalanta Jan 10 '13 at 5:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.