But, how do I lookup which users liked the post? We have 2 likes here, one is mine since “acted” is true. But there is one other like. How do I find out which user that is through the API? It is fine if we have to use an admin account to check.
I have staff level credentials, however, when I look at the JSON payload for posts that have been liked, I don’t see any indication of it either in the actions_summary or the post_action_users JSON payloads.
Perhaps the API has changed? Or I’m querying for the wrong thing. Any help is greatly appreciated.
And a follow up question: is there a webhook I could potentially set up to be notified when a user likes a post identifying the user and the post? We’d like to capture this info for analytics purposes.
The post with ID 31 is a small post action for pinning the topic globally (ie. Post.find(31).action_code == 'pinned_globally.enabled'), and those posts can’t be interacted with like normal posts, so there’s no way it can have likes.
There is only one regular post in that topic, but it does not have any likes either.
Try Post 33 - that one does have likes and you can see them serialized here: