What do you have to do to get cash on happy pets on Facebook?

Unfortunately, that usually requires real money for purchasing, although with some games you can watch a video to earn one or two. Most of the other ways to earn (like answering questions) are just scams to get you to buy something though, so if you want to play the game without spending money, stick to the coins that you can earn in-game.