With the completion of tasks, you get many candies. Moreover, more guests, achievements, commissions and having events also help you get more candies.