Facebook Integration

Now that the game is working as expected and should be bug free, we can turn our attention to integrating the game with the Facebook platform. The major thing we will accomplish here is the code needed to select an image from the user’s Facebook albums. As I have explained previously (see Chapter 8), we will set up a new application (though you can certainly use one that already exists) to deploy the application.

For my purposes here, I will create a new application named Facebook Image Puzzle and set the category to Games with a subcategory of Puzzle. I will connect this to the Heroku cloud using the PHP SDK. Most of the code you need to interact with the Facebook platform will already be in the project that is generated ...

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.