如何在我的应用程序中使用 Facebook JAVA API?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2022336/
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
How can I use Facebook JAVA API in my application?
提问by prakash.panjwani
I have downloaded facebook-java-api-3.0.2-bin from
http://code.google.com/p/facebook-java-api/
for connecting to face book.I want to use this api in my java application to connect Facebook.I am developing a desktop application for this purpose.I have created account on Face book and registered as a developer.
我已经从http://code.google.com/p/facebook-java-api/下载了 facebook-java-api-3.0.2-bin
用于连接到脸书。我想在我的 java 应用程序中使用这个 api连接 Facebook。我正在为此目的开发桌面应用程序。我在 Facebook 上创建了帐户并注册为开发人员。
Is it possible to connect Facebook from my java application?
是否可以从我的 Java 应用程序连接 Facebook?
If yes please, can some one send me the example code for that and treat me as a New Bee in this facebook integration?
如果是,请有人向我发送示例代码并将我视为此 Facebook 集成中的新蜜蜂吗?
Thanks in advance.
提前致谢。
采纳答案by Doug Porter
Have you tried out the various examples available in the api wiki?
您是否尝试过 api wiki 中提供的各种示例?
http://code.google.com/p/facebook-java-api/wiki/Examples
http://code.google.com/p/facebook-java-api/wiki/Examples
Google also returns various tutorial pages:
谷歌还返回各种教程页面:
http://programmaremobile.blogspot.com/2009/01/facebook-java-apieng.html
http://programmaremobile.blogspot.com/2009/01/facebook-java-apieng.html
http://www.socialjava.com/socialjavastepbystep.html
http://www.socialjava.com/socialjavastepbystep.html
You should try working through some of these and posting specific questions about problems you run into.
您应该尝试解决其中的一些问题,并发布有关您遇到的问题的具体问题。
回答by Black
Note that the facebook-java-api project is now dead.
请注意, facebook-java-api 项目现在已经死了。
Use instead: http://restfb.com/
改用:http: //restfb.com/