dontpanic
Aug 25th, 2011, 12:52 PM
Not sure if I've stumbled across a defect or if I've misconfigured/misused something, I have some basic code that is retrieving facebook posts from the main feed. For some status messages the post.getType().toString() message returns LINK rather than STATUS, even though the underlying JSON says STATUS, here is some example code
ObjectMapper mapper = new ObjectMapper();
String originalPost = mapper.writeValueAsString(post);
logger.info("FB item with...");
logger.info("post.getType(): " + post.getType().toString());
logger.info("post.getFrom()" + post.getFrom().getName());
logger.info("json is: " + mapper.writeValueAsString(post));
in the logs i see
2011-08-25 10:37:47.280 post.getType(): LINK
but when I inspect the JSON I see a status message...
{"name":null,"message":null,"id":"1438884935_2308048907541","type":"STATUS","description":null,"icon":null,"link":null,"from":{"name":"xxxxxx","id":"1438884935"},"createdTime":1314255056000,"updatedTime":1314255056000,"comments":null,...
Anyone else seeing something similar?
ObjectMapper mapper = new ObjectMapper();
String originalPost = mapper.writeValueAsString(post);
logger.info("FB item with...");
logger.info("post.getType(): " + post.getType().toString());
logger.info("post.getFrom()" + post.getFrom().getName());
logger.info("json is: " + mapper.writeValueAsString(post));
in the logs i see
2011-08-25 10:37:47.280 post.getType(): LINK
but when I inspect the JSON I see a status message...
{"name":null,"message":null,"id":"1438884935_2308048907541","type":"STATUS","description":null,"icon":null,"link":null,"from":{"name":"xxxxxx","id":"1438884935"},"createdTime":1314255056000,"updatedTime":1314255056000,"comments":null,...
Anyone else seeing something similar?