Give it to a Pokemon and they will become friendlier over time. It increases it by some but the most effective way to increase happiness is to feed your Pokemon vitamins such as Protein, Iron, Carbos, etc. I believe you should only feed a maximum of 10 vitamins before your the vitamins have done as much as possible for your Pokemon's happiness level.