[英]How can I get started building a Facebook application with a Java server backend?
I want to utilise the Facebook JavaScript API in the client, but manage app logic and configuration on the server through REST web services. 我想在客户端中使用Facebook JavaScript API,但通过REST Web服务在服务器上管理应用程序逻辑和配置。 I've tried a lot of tutorials out there, but so far I haven't seen one that actually works. 我在那里尝试了很多教程,但是到目前为止,我还没有看到真正可行的教程。
I'm looking for a comprehensive tutorial or set of recommended practices to get started. 我正在寻找入门的综合教程或建议的实践方法。
Thanks 谢谢
I just so happened to create a blog series that takes you through EVERYTHING you will need. 我碰巧创建了一个博客系列,该博客带您完成所需的一切。 The articles: 文章:
This blog series should be EXACTLY what you're looking for. 这个博客系列应该正是您要寻找的。 You can find the first of three articles here: 您可以在这里找到三篇文章的第一篇:
http://ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation/ http://ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation/
I would recommend going with Spring Social module with has a good abstraction of the Facebook API. 我建议使用Spring Social模块,它具有对Facebook API的良好抽象。
You could then expose these services via REST with Spring Web Services or Jersey. 然后,您可以通过带有Spring Web Services或Jersey的REST公开这些服务。
I am not sure about the hosting. 我不确定托管。 Facebook should see it as a valid application no matter the host. 无论主机是什么,Facebook都应将其视为有效的应用程序。 Even your development computer/localhost cando it. 甚至您的开发计算机/本地主机也可以做到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.