O'Reilly logo

Beginning Facebook Game Apps Development by Wayne Graham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Facebook Score API

The game we just developed could be deployed in a lot of places right now because it is just HTML code. You could make it playable from a website and code a high-score system into the game that uses your browser's LocalStorage API to record a user's high score. This would be relatively straightforward, but you really are limited to seeing your own high scores. You could write your own database system for recording high scores as we did in Chapter 12. There are some limitations with a solution like this, especially if you need to develop an authentication/authorization system (there are a lot of talented site crackers out there). This is actually a big plus for a framework such as the Facebook platform, to manage some of these ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required