Chapter  11

Adding Facebook Components

In the previous chapter, we walked through using the Facebook Graph API to provide the data for a puzzle game. Now that we have a game people can play, it is time to take it to the next level. We’ll leverage some of the other Facebook APIs to recognize achievements for playing the game and track the fastest times for completing a puzzle. To do this, we need to interact with the Heroku system and its database backend.

I will also cover some of the basics for deployment, including minifying your codebase, dealing with cheaters, and protecting your game from theft. If you move your game to a platform other than Heroku, you may need to adjust some of the database commands, but you should be able to port this ...

Get Beginning Facebook Game Apps Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.