Watermelons on facebook
Watermelons was a pygame game made in about 8 hours one evening on the #ludumdare channel. Since then I’ve ported it to flash using haxe. This past weekend I integrated it into the facebook API. You can check the app out here. My server-side high score system was written with PHP.
The integration was somewhat challenging, since I was using a language not supported by facebook (haxe) and my integration involved using flash, which has some restrictions when used within FMBL. To work around these things, I had to embed my flash object within an iframe and then pass high scores back through my main web script in the browser window (instead of as a background request) in order to be able to use all the facebook notification features.
So far (after about 5 days) the app has about 160 users, which isn’t very many. But I suppose it’s not bad for my first shot at writing a facebook app.











December 21st, 2008 at 4:38 am
Hi, may I know how you do that?
I mean how to do the highscore in php?
I have similar situation, flash game and want a highscore that can display facebook’s username and so on. Are you using iframe or FBML?
If u use iframe, could you teach me how to do? Like some sample code and so on. My email is robincua@yahoo.com.sg.
December 21st, 2008 at 4:42 am
after play ur watermelons game, that is exactly whati want to do with the highscore. Today highscore, friends highscore, invite friends and so on.
Please I need your help…
Once again my email is robincua@yahoo.com.sg.
How to do that? Can giv me some sample code?
December 22nd, 2008 at 11:35 am
My code for this isn’t very useful. I bet if you look on freshmeat.net or something you can find an open source highscore back-end. But all I did was a simple PHP database thing.
January 10th, 2009 at 4:03 am
In regard to facebook and haxe, you may find facebridgex useful I ported it from facebookbridge.
http://code.google.com/p/facebridgex/