Saving scores for facebook users to compare with their friends

Nibbie
Posts: 3
Joined: 2011.09
Post: #1
I am looking for a way (similar to what Doodle Jump has) where a user of my game can log in to facebook using facebook connect, submit their high score (to somewhere) and see what their friends high scores are.

Is there any tool, service or API currently available to do this? or would I have to roll my own backend and server to store and retrieve this information?

Cheers!
Eli
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
This is a good place to start, in case you haven't been to it already: http://developers.facebook.com/docs/

There isn't a storage API, so you'll need your own back end to store high scores keyed by Facebook user ID. With the proper authentication, you can retrieve a list of the user's friends using the graph API, which you could then use to look up scores for them on your server.
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2011.09
Post: #3
Cheers..I thought that would be the case. I might write up a blog post about it when i'm done Smile
Quote this message in a reply
Moderator
Posts: 452
Joined: 2008.04
Post: #4
There are dozens of libraries by other people.

Here's one I randomly picked out of this list: http://www.google.com/search?q=ios+facebook+connect

https://github.com/facebook/facebook-ios-sdk

I think we've used a Unity plugin once... or at least recommended it to someone.

On one iOS project it looks like we did use FBConnect.bundle, which appears to be supplied by facebook, but like Alex says, there's a little bit of stuff to store client side, not really an issue though..

Howling Moon Software - CrayonBall for Mac and iPhone, Contract Game Dev Work
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2011.09
Post: #5
Yeah i'll definately be using FBConnect to get the facebook user's information and friends, but the point is to store my custom score data against each facebook user, so that when somebody is playing my game and wants to compare their scores and achievements with their friends who are also playing, that score data needs to be stored somewhere, which can't be local, it needs to be on a database somewhere where all instances of the game can access it and see if their friends have uploaded scores. And as ThemsAllTook said, theres nowhere to store that data with facebook itself, so it seems i'll need my own server/database.

(Sep 13, 2011 08:22 PM)AndyKorth Wrote:  There are dozens of libraries by other people.

Here's one I randomly picked out of this list: http://www.google.com/search?q=ios+facebook+connect

https://github.com/facebook/facebook-ios-sdk

I think we've used a Unity plugin once... or at least recommended it to someone.

On one iOS project it looks like we did use FBConnect.bundle, which appears to be supplied by facebook, but like Alex says, there's a little bit of stuff to store client side, not really an issue though..
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  how to integrate facebook sdk into unity? jeroenx000 1 3,507 Oct 24, 2012 10:29 PM
Last Post: jeroenx000
  facebook page for my app? aerospaceman 6 10,283 Aug 21, 2012 01:32 AM
Last Post: jaydenharris98
  Saving context markhula 4 6,108 Mar 8, 2011 02:37 AM
Last Post: markhula
  saving/reading level data using plists aerospaceman 6 4,572 Nov 29, 2010 02:44 PM
Last Post: aerospaceman
  required facebook login = rejection? mraycpb 0 2,707 Nov 12, 2010 07:51 PM
Last Post: mraycpb