Contests, Giveaways, and Sweepstakes

What’s the best way to run a contest, generally, and on social media? What are legal issues I need to watch out for?