Setting up a photo collage
This Facebook application will create an exquisite collage of pictures of the current user which are picked randomly from his/her albums. Also, it will create a new album in the user's profile and post the collage generated in it.
You should have created
config.php as mentioned in the beginning of this chapter. Also, you should have provided
user_photos extended permission to the application. Additionally, download a TrueType font of your choice as explained in the Designing a "My Fast Friends" Facebook application recipe.
How to do it...
The following steps will demonstrate how to set up a photo collage:
index.phpand add the following PHP code before the
<html>code. Here, first we define ...