Referral programs reward customers for inviting their friends to purchase products or services. Affiliate marketing programs, on the other hand, compensate third-party advocates, like influencers and bloggers, to recommend brands.