O'Reilly logo

Beginning Facebook Game Apps Development by Wayne Graham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tracking Achievements

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 setup.php ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required