17

Who knows a good Java library for using Facebook's graph API?

5 Answers 5

19

There are a list of good Facebook API in Java facebook4j. The simplest one is restFB. On their page, there's sample code that shows you how to use restFB.

Sign up to request clarification or add additional context in comments.

3 Comments

I tried out restFB and liked it very much. The only downside is that (as of today) it isn't in the maven repository.
I'm the maintainer of RestFB. It's now Mavenized :)
I think Facebook4J and restFB are two different libraries. Anyhow, I use Facebook4J and it works great. Tried authentication (code+token) and search. Everything works as expected.
4

I recommend restFB. It is simple and easy to use, the sample code is very clear and can quickly hands on it. Please check its web site: http://restfb.com/

Comments

2

Try out BatchFB, it's designed to get your data back with the minimum number of calls to Facebook:

http://code.google.com/p/batchfb/

Comments

2

Also http://facebook4j.org/en/index.html But not tested it yet by myslef.

Comments

2

If you need a something more like Java EE solution, you can check out spring: http://spring.io/guides/gs/accessing-facebook/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.