Hi guys,
I have a problem when I want to get the Facebook status for my user.
I use the good scope => user_status
And in my code, I do this:
Id is the user id from FacebookProfile.Code:List<StatusPost> statuses = facebook.feedOperations().getStatuses(id);
When this line is executed, I get this exception:
I have gone into this code that I put here:java.lang.NullPointerException
at org.springframework.social.facebook.api.impl.json. PostMixin$LikesCountDeserializer.deserialize(PostM ixin.java:130) [:]
at org.springframework.social.facebook.api.impl.json. PostMixin$LikesCountDeserializer.deserialize(PostM ixin.java:126) [:]
... 67 more
And when I debug it, the Json tree is something like this:Code:public Integer deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { JsonNode tree = jp.readValueAsTree(); return tree.get("count").getIntValue(); }
So when the code executes get("cout"), it's normal that the exception comes.Code:{"data":[{"id":"1234","name":"toto"},{"id":"12345","name":"titi"}]}
I don't understand where hat I have wrong.
Someone can help me ?
Thanks.


Reply With Quote
