Given that Facebook is written in PHP, and Twitter (I think) started out in Ruby, I'm not sure your assertion is well supported by your examples.
Keep in mind too, that the backend you launch with will not be the same as the backend you have at your multibillion dollar IPO. It _may_ still be written in the same language, but thats certainly not a given.)
For facebook, considering how often stuff is broken.. I Think perl or php would've done a fine job.
For youtube, I think the pull is uploading / watching videos online, and it just doesn't have anything to do with the language they picked.
For Twitter, I'm not sure how it's successful in the first place, but I do feel like there was a lot of enthusiasm in the ruby community, simply because they were based on ruby. So if they picked say php, would they have had that early cache of users? I don't think so.
No, not at all. Do you think Facebook would have gone so far into implementing all the current features since the launch if the whole site was written in Perl? Same thing with YouTube and Twitter...