It’s the injection into the site, and ad network quality that have the largest impact on security.
Facebook runs a pretty good ship with it’s ads, especially since it runs the ad network itself (from what I’m aware).
* There are no flash ads: This cuts down a ridiculous amount of risk (flash is evil)
* The ads follow a…