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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.