code: public static String toJSON(Object value, ObjectMapper mapper) {
  		try {
  			return mapper.writeValueAsString(value);
  		} catch (IOException ex) {
  			throw new FacebookException(ex);
  		}
  	}
docs: Converts the object to a JSON string using the mapper