It's probably not facebook. Your wife's friend may have certain apps installed that have access to her texts, both incoming and outgoing, and they are likely phoning home her data and selling phone numbers to scammers. I've seen this where I've been texting my wife and then soon after get text adverts based on certain words we were using.