Facebook is aware of the rule in question. The Facebook restricted stock plan was designed so that the participants are not considered stock owners. I doubt that Facebook went ahead with this deal without carefully examining the issue.
Basically since the restricted stock holders are employees that didn't directly invest money they're not being considered as counting against the 499 limit (which to me seems perfectly fair).