Turned-based, Facebook connected iOS Game - how does it work on the back end?

I recently played a game called Bike Race TFG on the iPhone that allows you to challenge people via Facebook to race against your “ghost”.

I would like to know how this might work on the back end. I am assuming that the game ties your facebook info to a savegame (your ghost race) and uploads it to a server, which can be accessed by a challenger.

  1. Could this kind of game created with Unity?

  2. What 3rd party solutions are there for server storage of this kind of savegame files?

  3. Does anybody have any experience with facebook connect? Are there any hoops to jump through in order to use it, that I might not be aware of?

I’m really sorry if this post comes of as noobish, I’m kind of new to this game. I hope somebody can give me some pointers. I’m also really grateful for any links and reading material.

Ghost racing is more or less a matter of recording the input (or positions) while driving the course and then uploading them for others to replay.
Facebook IDs would help to know who are friends and then ask your backend for available records/ghosts.

1: Yes. Almost any type of game can be created with Unity.
2: I assume you can do this with player.io, roar engine (probably) and maybe some others.
As you do a FB game you might have some php / web developer already. You should be able to implement this kind of service yourself with low / medium effort, too.