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

2020-06-16 05:31发布

问题:

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