You can stay at Google or Facebook forever, it's just a matter of finding yourself on the right teams with the right work-life balance. If you chase the most exciting projects at any company, it's a recipe for burn out because you'll be working a lot more than you would be on a "necessary, stable, boring" project/system.
I agree! I have not had the opportunity to work at Google or Facebook but at my current job I always take up forsaken projects as that usually has a lot of up potential and very less down potential. Everybody wants to work on the shining new tech but no one wants to work on that maintenance project which is actually is creating those new tech opportunities in the first place.