Happened to me too. Very spammy (I reported it to LinkedIn too, I hope they kill their API access).
First, I received a private email from a close friend I trust. Didn't know he was quitting his job and starting something new. All he was asking was for me to vouch for him. Ok. Then a few days later, he told me I should join too. That got really weird.