If you're growing like crazy, it's not that hard to turn down offers. Indeed that's what Facebook itself did, so there's your model.
A Facebook competitor faced with an offer from Facebook would not have that problem. It's very likely that the competitor and Facebook would be very well aligned strategically. Selling would mean the competitor would get to where they want to go. Very few founders would say capable of saying no.