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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access