Facebook API 和 Facebook Connect 使用 Java?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1360060/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Facebook API and Facebook Connect using Java?
提问by mw_javaguy
New to Facebook API and Facebook Connect.
Facebook API 和 Facebook Connect 的新功能。
Found the Facebook Java APIopen source library on Google Code...
在 Google Code 上找到了Facebook Java API开源库...
I am really excited that there's an API pre-written in Java for it!
我真的很高兴有一个用 Java 预先编写的 API!
Am interested in writing a server side Java layer which uses REST to be able to access a user's Facebook Friends List, their wall, send them messages in-network, etc.
我有兴趣编写一个服务器端 Java 层,它使用 REST 来访问用户的 Facebook 好友列表、他们的墙、在网络中向他们发送消息等。
Downloaded the binary and unfortunately, I haven't found any sample or demo code when I unzipped it...
下载了二进制文件,不幸的是,当我解压缩它时,我没有找到任何示例或演示代码......
Question(s):
问题):
(1) Does this library support Facebook Connect?
(1) 这个库是否支持 Facebook Connect?
(2) What is the best way to get start using Facebook Connect with server side Java?
(2) 在服务器端 Java 中开始使用 Facebook Connect 的最佳方式是什么?
(3) Since I am building middleware, do I still have to create a sample app on the online Facebook Developer page?
(3) 由于我正在构建中间件,我还需要在在线 Facebook 开发者页面上创建示例应用程序吗?
(4) What should I include in my (am a newbie in Maven) pom.xml in order to get started?
(4) 为了开始,我应该在我的(我是 Maven 新手)pom.xml 中包含什么?
采纳答案by Sam
As far as I know, that library is broken. I couldn't get authentication to work with the latest version.
In my search for alternatives i found the "TinyFBTagLibrary" http://www.socialjava.com/--
Yes, it requires just about a billion extra libraries to run, but it offers a simple way to execute facebook API calls in java that ISNT BROKEN (once again, as far as I know). My advice is to ignore all of the predefined tags for use in jsp and scroll down to the bottom to see how to use the TinyFBClient.call/getResponse when you need to get information.
据我所知,那个图书馆坏了。我无法获得身份验证以使用最新版本。
在我寻找替代方案时,我发现了“TinyFBTagLibrary” http://www.socialjava.com/——是的,它只需要大约十亿个额外的库来运行,但它提供了一种在 Java 中执行 facebook API 调用的简单方法, ISNT BROKEN(再一次,据我所知)。我的建议是忽略所有在 jsp 中使用的预定义标签并向下滚动到底部以查看在需要获取信息时如何使用 TinyFBClient.call/getResponse。
回答by eth0
回答by Carli
Use RestFB, that seems to be the inofficial FB Java Api:
使用 RestFB,这似乎是非官方的 FB Java Api:
(There is no official FB Java Api anymore)
(已经没有官方的 FB Java Api 了)