简体   繁体   English

如何开始使用Java服务器后端构建Facebook应用程序?

[英]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. 我在那里尝试了很多教程,但是到目前为止,我还没有看到真正可行的教程。

  • What do you recommend as a server / web framework? 作为服务器/ Web框架,您有什么建议?
  • What technology should I use for my REST endpoints? 我的REST端点应使用什么技术?
  • How can I host this application in a place where facebook will "see" it as a valid app? 如何在Facebook将其“视为”有效应用程序的地方托管该应用程序?

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: 文章:

  • Setup Eclipse (IDE) and JBoss AS7 (server) 设置Eclipse(IDE)和JBoss AS7(服务器)
  • Setup other JBoss Tools including Forge 设置其他JBoss工具,包括Forge
  • Setup JAX-RS Web Service in Java using Forge (very easy!) 使用Forge用Java设置JAX-RS Web服务(非常容易!)
  • Setup account to Host the site for FREE with OpenShift 设置帐户以使用OpenShift免费托管网站
  • Setup an entire sample Facebook App 设置整个示例Facebook应用

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.

相关问题 开始监视服务器上Java应用程序的运行状况 - Get started with monitoring health of Java application on server 如何在WildFly服务器(Java后端)上构建和部署Angular应用程序 - How can I build and deploy an Angular application on my WildFly server (Java backend) 如何测试JBoss服务器是从外部Java应用程序启动的 - How to test JBoss server is started from external java application 我如何获得开始活动的背景 - How i can get the context of started activity 构建Java服务器,我无法使页面停止加载(使用PrintWriter和Buffered Reader) - Building Java server and I can't get my page to stop loading (using PrintWriter and Buffered Reader) 如何实现 OneSignal 推送通知到 java(不是 javascript)后端 web 应用程序 - How can I implement OneSignal push notification to java (not javascript) backend web application 如何开始使用Java模块? - How to get started with Java modules? 如何解除对Java启动进程的阻止? - How can I unblock from a Java started process? 如何为以Java启动的nogui进程创建控制台窗口? - How can i create a Console Window for a nogui process started in java? 如何在 shell 脚本中杀死刚启动的 Java 进程? - How can I kill a just started Java process in shell script?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM