4

I've played around a bit with twitter4j and found it absolutely wonderful. Now I've been looking into the equivalent for facebook but so far haven't had much luck finding a decent project.

I looked into facebook-java-api but it appears that they break their API from release to release. I consider this unacceptable.

I'm currently playing around a bit with RestFB and the API seems decent so far but I've been having some connection problems.

I'm just looking for a simple library that lets me post status updates, send direct messages and get a list of friends through minimal coding effort.

Has anyone had any success using a java API for facebook and if so, what are you using? Thanks.

Aaron
  • 23,450
  • 10
  • 49
  • 48
  • FB Graph has recently come out. The REST based API is now the "Old API" I'd read up on that b4 going into the REST API – Alex May 12 '10 at 19:09
  • 1
    I'm the maintainer of RestFB. What kind of problems were you seeing? – Mark Allen May 15 '10 at 04:30
  • I created a new FacebookClient object using my account token and then tried running the sample fetchObject code for cocacola. It would always throw an exception with an unrecognized status exception. Connecting through firefox to the same Graph API url would return Status 200 OK. – Aaron May 17 '10 at 20:21
  • 2
    If you post your stack trace here or on http://groups.google.com/group/restfb, I'll give you a hand figuring out what's up. The examples should work just fine; I'm guessing this is something small like a copy-paste issue. Thanks! – Mark Allen May 18 '10 at 14:41
  • Yeah, I assume I am doing something wrong. Thanks, I'll get around to posting it there soon :-) – Aaron May 18 '10 at 15:16
  • It's a old question, but I've still the same doubt. I've found spring-social-facebook besides restFB. Does anybody has a recommendation on which one seems better for the updated API? Not sure, but spring restFB seems more like a wrapper (which is what I want) and Spring seems more complex, handling credentials/tokens storage, authentication mechanism and so on. My perfect library would receive the user access token and would provide me methods for invoking graph endpoints – pedrorijo91 Jul 21 '15 at 10:13

1 Answers1

1

Did you try out the social templates recently announced at Socializing Spring Applications? The article refers to a recent milestone release of Spring Social and the code examples look nice.

Kariem
  • 4,398
  • 3
  • 44
  • 73