Open redwerk opened 11 years ago
Apparently, the Graph API has changed, so the like_count isn't provided anymore in the raw response.
I don't think it's possible to workaround this issue. Not without additional requests.
About like_count it is OK. We will find workaround.
But the the main problem of this issue are fields from https://developers.facebook.com/docs/reference/api/post/
like privacy, place, story, likes, shares, status_type. They are ignored and not parsed from JSON response that arrives from FB API. These are no such fields in the Spring Social Facebook Post class, please add them.
http://docs.spring.io/spring-social-facebook/docs/1.0.x/api/org/springframework/social/facebook/api/Post.html
Also "attachments" is missing as I know. Needed to change to RestFB to actually have full JSON objects
The Post class object returned by FeedOperations methods (like getFeed() ) doesn't contain such fields as:
Please see here https://developers.facebook.com/docs/reference/api/post/
But if I make a Facebook API call using this URL https://developers.facebook.com/tools/explorer?method=GET&path=habuma%2Ffeed
I will get JSON (Posts) with all fields listed above without any additional API calls.
Please do not ignore fields mentioned above, parse them from JSON and add to Post (org.springframework.social.facebook.api.Post)
There is no way to get such Facebook post fields, even using additional Spring Social Facebook method calls: privacy, place, story, shares, status_type
Also I have noticed that Post.getLikeCount() always returns 0
However, comments and likes can be retrieved using additional invocation of LikeOperations and CommentOperations methods, but it is still not acceptable because we should do 2 additional requests on each Post that hit rate limit very hard. Facebook Rate limit is unofficial but exists, please see here http://stackoverflow.com/questions/8805316/facebook-graph-api-rate-limit-and-batch-requests