Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to develop a small Facebook game with some graphics involved (not that many). Within that game, the users will be able to buy/sell certain items and I wonder WHERE I can save those items/virtual money...? Does Facebook offer me a database I can use?

share|improve this question

migrated from Apr 19 '11 at 19:18

This question came from our site for power users of web applications.

Depending on what sort of game you are trying to make, you will need some place to put the actual game.

A Facebook App points to external websites for the canvas part of the application. This is your own webserver/webhotel and what ever language your webserver uses ought to provide you with some database connectivity.

So if you eg. use PHP on the server, MySQL might be the datasstorage. If you have a IIS/ASP/ server available, SQL-Express could be your answer. But with most server-side languages you can also remotely connect through IP to another database server somewhere else.

You can also use API's to connect to webservices that allows you to put/get data from their storage. Some are SQL, some are Table and some are XML based, but if you have basic CRUDL functionality at them, you dont have to care about how they do it.

Amazon AWS has something called SimpleDB which is a XML kinda storage. It has a great API too, but again, it all depends on your needs, economics and technical skills for implementing this.

If you use Flash for a client, then you have the issue of how to communicate with a server to get the data in and out from the client. For this you also need the server-side "something" that can serve your data as needed and receive "POST" data from the Flash-client.

So once you have a server, you know where you can put your data.

To my knowledge, Facebook does currently NOT support native data-storage, but perhaps others can elaborate on this subject.

share|improve this answer

Google App Engine and AWS Simple Db would be a good starting point. They include some superb sample client code to get you going.

share|improve this answer

You need to provide your own server for hosting your database. Google App Engine is free to start using but kind of tricky because the database is Google's Big Table rather than SQL.

So the option I recommend is Kodingen:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.