I am struggling with getting favorites count for tweets from Search API in twitter4j, but I receive the error that this function does not exist. Is anyone else facing the same problem? Can anyone help me solve it?
ATM you have to resort to:
JsonNode status1Json = OM.readTree(new StringReader(DataObjectFactory.getRawJSON(status1))); status1Json.get(FAVORITE_COUNT).asInt()
Note that you have to enable “store raw json” feature in twitter4j for this to work.
Thank you. I solved the problem long time ago. You can see what I did: