Facebook API和Facebook Connect使用Java? [英] Facebook API and Facebook Connect using Java?

查看:129
本文介绍了Facebook API和Facebook Connect使用Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



找到 Facebook Java API Google代码开源库...



我真的很高兴有一个预先编写的API Java为它!



我有兴趣编写一个使用REST的服务器端Java层,以便能够访问用户的Facebook好友列表,他们的墙壁,网络等。



下载了二进制文件,不幸的是,当我解压缩时,我没有找到任何示例或演示代码...



问题:



(1)此图书馆是否支持Facebook Connect?



< (2)从服务器端Java开始使用Facebook Connect的最佳方法是什么?



(3)由于我正在构建中间件,所以我还需要在线Facebook开发者页面上创建一个示例应用程序?



(4)我应该包括什么(在Ma的新手)pom.xml以便开始使用?

解决方案

据我所知,该库已损坏。我无法使用最新版本的身份验证。

在我寻找替代品时,我发现TinyFBTagLibrary http://www.socialjava.com/ -
是的,它需要大约10亿个额外的库来运行,但它提供了一种简单的方法来执行在java中的API API调用ISNT BROKEN(再次,据我所知)。我的建议是忽略在jsp中使用的所有预定义标签,并向下滚动到底部,以便在需要获取信息时查看如何使用TinyFBClient.call/getResponse。


New to Facebook API and Facebook Connect.

Found the Facebook Java API open source library on Google Code...

I am really excited that there's an API pre-written in Java for it!

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.

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?

(2) What is the best way to get start using Facebook Connect with server side Java?

(3) Since I am building middleware, do I still have to create a sample app on the online Facebook Developer page?

(4) What should I include in my (am a newbie in Maven) pom.xml in order to get started?

解决方案

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.

这篇关于Facebook API和Facebook Connect使用Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆