LiveSite has very little to do with that question. If you're talking about Facebook likes, then read up on the API -- it's just about printing the right HTML + JS include. If you're implementing your own, think about how you'd do it in a standard Java webapp first, and then apply that to LiveSite (it won't be that different).