Question

I do not want an SDK with Facebook specific methods because I am programming in a REST style using JAX-RS 2.0 Client (Jersey Client).

I find myself creating classes such as:

@JsonIgnoreProperties(ignoreUnknown = true)
@XmlRootElement
public class User {

  public String id;
  public String name;

  public String toString () {
    return "id: " + id + "; name:" + name;
  }

}

Is there such a set of model classes maintained by somebody without the overhead of an SDK. I do not need a library that includes a client and custom methods for getting friends, etc. or that store credentials. I am perfectly happy with Jersey. All I need is model classes.

Any pointers? It is OK if there is an SDK that has a clean set of model classes that I could use without having to do anything with the rest of the SDK (pun unintended).

Was it helpful?

Solution

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 on github:

https://github.com/itzikrou/fishbowl

Hope it's useful.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top