In person, you can thank someone right away. For social media, it’s customary to wait until the day after your birthday to thank folks. If someone sends you a text, email, or card, you can thank them immediately or soon after receipt.