简体   繁体   English

通过Java Applet的Facebook App

[英]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. 我有一台无头的Java EE应用程序运行在我的一台GlassFish服务器上,前段时间,我为其前端编写了一个Swing小程序。 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. 现在,我想制作一个使用相同后端的FB应用程序,但是我不想用JS或PHP重写GUI。

I absolutely detest JavaScript. 我绝对讨厌 JavaScript。 I've been pouring through the FB dev docs and can't seem to find an answer to this question, but: 我一直在浏览FB开发文档,似乎找不到这个问题的答案,但是:

Can I just use my applet as the "canvas" for my FB application? 我可以将小程序用作FB应用程序的“画布”吗? 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? 如果画布仅使用iframe,并且画布url指向运行我的小程序的servlet,那么是否有任何理由为什么不起作用?

I think it works. 我认为它有效。 I read a tutorial to get an applet inside a facebook app using an iframe, so that must work. 我阅读了一个使用iframe在Facebook应用程序中获取applet的教程,因此该方法必须有效。 They had to pass the facebook data in the applet init parameters. 他们必须在applet init参数中传递facebook数据。 there might be another way around to get facebook data into an app if you need that 如果需要,可能还有另一种方法可以将facebook数据导入应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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