If someone visits your kingdom and taps a little heart, your building will be sparkling, and you get a bonus when you collect. Either 10% or 20% (I can't remember which) more coins or resources depending on what building is sparkling.
When you visit a neighbor, you get XP, coins, or energy whether or not you tap any hearts.