Is there a way to like a post for a user and display it?

Hi,

I am looking for a simple integration that would count likes of blog users.
I provide here an image of what I am trying to achieve.
image

It would just be a module where user can add a like to a post.

Thank you for the help

Maybe you could repurpose this library called ‘Applause’ which mimics the claps feature shown on Medium: https://applause-button.com/

2 Likes

Thanks for the suggestion. I have to see if I can integrate it and change the button to be a heart instead !

1 Like

Did you manage to get it to work?

Actually it would be a really nice addition to ghost. With Wordpress it’s as easy as installing a plugin to get it into your site. Up & running in no time.

1 Like

@janmueller Finally I implemented the applause-button as it was suggested, I had to rewrite component in React, I didn’t find any other library or simple way to integrate it ! As you said this is really a feature that is missing and should be implemented for sure.

1 Like

hmm… so do you have a version that can be integrated into ghost?

As I said I made a react component that is connected to the applause-button library. It is a third party free service. For our implementation it was ok for us to use that king of library. This way was easier and quicker to implement than adding a table to the ghost database and connecting it to our backend. As it is only the number of likes we do not need to store in our database. The API gives you the number of likes per article and there is also another endpoint where you can get likes from different url’s.