My problem if a company paid me $3.5 million not to leave for its competition would be that I'd quit the day the money was in my bank account anyway. I wouldn't go work for the competition, but I'd be starting my own company.
I could do a hell of a lot with $3.5M, and probably make more than I ever would being an engineer for Google.
The $3.5 million is in restricted stock that presumably vests over four years. If you left the day after accepting the counter-offer, you'd get nothing.
Unless I factored it.
I don't think the money just shows up in your bank account one day. From the TC article: "this means Google is handing over stock worth $3.5 million based on its value today, and that stock will vest over time."
There is no public market for Facebook stock today, so "value today" is meaningless. Frankly, they gave him a big package of "it really really really could be."
That person works for Google and got Google stocks, not Facebook.