JavaFX and Facebook, the solution

When I started this blog, I was rambling with Facebook, JavaFX and alternative technologies.

It turned out that JavaFX is not ideal for social application development, because of various reasons.
Let alone JavaFX, applets are also not very ideal for social application development, if a RIA is necessary Flash is the solution, not even Flex.

Anyway Turning a JavaFX application to a Facebook application Is really simple.
Deploy your JavaFX application for web, in order for it to launch in browser you have to use only WEB components, if you add Desktop components, Java classes etc. You can deploy it but It will not be really a Web application. It can only run in Web when the user download and confirm. It will seem like a Web application but its not.

The method I am going to explain applies for everything, not just JavaFX.

Create an application on Facebook, go to Canvas and point the application to http://yourdomain.com/javafxdeploy.htm
And from Canvas Tab choose “IFRAME”!!!!

I emphasized this point because Iframe application can show anything as a Facebook application.

You can alternatively Develop a “FBML”!!! application and use “fb:iframe” tag and point it to http://yourdomain.com/javafxdeploy.htm

This way you can include fancy stuff like SHARING POINTS with Feed forms etc.

The thing is that you cannot use Facebook API library in JavaFX, so you have to write your own Web services (Php files) to get and set data, interact with Facebook etc. (This part can be a life saver for you if you are determined to use JavaFX)

So to sum up, this is possible but don’t do it.

I personally mastered PHP and I am very happy with it, If I must use RIA in future I will definitely master Flash etc.

Don’t get me wrong, I like JavaFX, it’s great, language properties are really really charming, but it’s not really good for social applications

1 comment to JavaFX and Facebook, the solution

  • Antons

    Hello Rakesh,
    Is there still no way for an application written in JavaFX to invoke the Facebook API from within it? If not, is there any work around? Thanks a lot for your help!

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>