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

2020-06-16 05:19发布

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.

5条回答
我欲成王,谁敢阻挡
2楼-- · 2020-06-16 05:23

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

查看更多
干净又极端
3楼-- · 2020-06-16 05:26

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.

查看更多
混吃等死
4楼-- · 2020-06-16 05:27

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

查看更多
成全新的幸福
5楼-- · 2020-06-16 05:30

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");
查看更多
淡お忘
6楼-- · 2020-06-16 05:36

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..

查看更多
登录 后发表回答