Make a like button, that show who has liked my post

How can I make a like button, that show who has liked my post, on a social network?

Retrieve the list of people who have liked the post from your database, and build the HTML from there?

It’s a very wide-ranging question and very difficult to answer without knowing what you already have in terms of the database and page code, and how much experience you have with coding.