This isn't really suitable as a demonstration snippet. There should be buttons the user can click to recommend and unrecommend and the snippet should display the results.

Also the method name for unrecommend should be unrecommendPost i.e. do not captitalise the r