How to create a like action?

I opened a new question for this.