Is there an up-to-date Facebook Java SDK? [closed]

帅比萌擦擦* 提交于 2020-01-01 04:50:07

问题


I can't seem to find one that's been updated recently. If none, is there a good Java library for doing the necessary signature verification, base64 decoding, etc operations needed to interact with Facebook's API?

UPDATE: I'm using Spring Social Facebook to aid in working with Facebook. It doesn't handle everything and isn't perfect, but the best library out there for Java. Looking forward to the ongoing progress from Spring. I asked a couple questions in their forum and responses were informative and super quick.


回答1:


You can check facebook's official android SDK which is written in Java:
https://github.com/facebook/facebook-android-sdk

all basic things like verification, decoding, etc are there, maybe android-related stuff is not what you need but I guess it is relatively trivial to extract it from there.

hope this helps




回答2:


I just started using RestFB. I looked at Spring first, but this seems like RestFB has a gentler learning curve. I'll update if it works for me.




回答3:


i think the semi-official java SDK is the spring social one:

http://www.springsource.org/spring-social

but i wrote a Java wrapper for Facebook's REST GRAPH API (http calls to the graph api, and translations from json objects to java classes..)

you can check it out here:

https://github.com/itzikrou/fishbowl

hope it's usefull..




回答4:


https://github.com/roundrop/facebook4j looks nice but haven't yet used it.

For example, the search API look straightforward:

ResponseList<User> results = facebook.searchUsers("mark");
ResponseList<Post> results = facebook.searchPosts("watermelon");



回答5:


Go to developers.facebook.com , there u will get all API's releated to facebook..also manual regarding how to use them...



来源:https://stackoverflow.com/questions/7470157/is-there-an-up-to-date-facebook-java-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!