I like these:
WordPress snippets to interact with social networks
Update, 4 years later. Obviously, these snippets are way out of date. In any case, if you want to add social media buttons to your site you are probably better off with a plugin, that hopefully will stay updated and not snoop on you.. I can’t recommend one. Frankly, I think social media buttons are overrated.