{"id":29,"date":"2007-11-08T21:38:04","date_gmt":"2007-11-09T03:38:04","guid":{"rendered":"http:\/\/www.philhassey.com\/blog\/2007\/11\/08\/watermelons-on-facebook\/"},"modified":"2007-11-08T21:43:00","modified_gmt":"2007-11-09T03:43:00","slug":"watermelons-on-facebook","status":"publish","type":"post","link":"https:\/\/www.philhassey.com\/blog\/2007\/11\/08\/watermelons-on-facebook\/","title":{"rendered":"Watermelons on facebook"},"content":{"rendered":"<p><a href=\"http:\/\/www.imitationpickles.org\/melons\/\">Watermelons<\/a> was a pygame game made in about 8 hours one evening on the <a href=\"http:\/\/www.ludumdare.com\">#ludumdare<\/a> channel.  Since then I&#8217;ve ported it to <a href=\"http:\/\/www.imitationpickles.org\/melons\/flash.php\">flash<\/a> using <a href=\"http:\/\/www.haxe.org\">haxe<\/a>.  This past weekend I integrated it into the facebook API.  You can check the app out <a href=\"http:\/\/apps.facebook.com\/watermelons\/\">here<\/a>.  My server-side high score system was written with PHP.<\/p>\n<p>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.<\/p>\n<p>So far (after about 5 days) the app has about 160 users, which isn&#8217;t very many.  But I suppose it&#8217;s not bad for my first shot at writing a facebook app.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Watermelons was a pygame game made in about 8 hours one evening on the #ludumdare channel. Since then I&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,15,16,7,4,3,2],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-crazy","category-facebook","category-haxe","category-javascript","category-php","category-pygame","category-python"],"_links":{"self":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.philhassey.com\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}