简体   繁体   中英

Facebook App via Java Applet

I have a headless Java EE app running on one of my GlassFish servers, and some time ago I wrote up a Swing applet for its front-end. Now I want to make a FB app that uses the same back-end, but I don't want to rewrite the GUI in JS or PHP.

I absolutely detest JavaScript. I've been pouring through the FB dev docs and can't seem to find an answer to this question, but:

Can I just use my applet as the "canvas" for my FB application? If the canvas simply uses an iframe, and the canvas url points to a servlet that runs my applet, is there any reason why that wouldn't work?

I think it works. I read a tutorial to get an applet inside a facebook app using an iframe, so that must work. They had to pass the facebook data in the applet init parameters. there might be another way around to get facebook data into an app if you need that

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM