Facebook has an achievement system that is quite similar to what you see on Xbox and PlayStation games. Your game has access to 1,000 points and up to 1,000 achievements. Each achievement needs its own page, which has a title, description, image, and a number of points. With these constraints in mind, we can build a quick system to try out the Facebook achievements system with the achievements stored in a database, and served from our application.
Setting up achievements involves creating a table that holds the information Facebook uses in the Open Graph protocol to define the achievements for the application. To set up, I created a new directory named
achievements, and the first file I created in that directory is