Facebook will pay $10 million to charity to settle a lawsuit over the way it used "social" ads. Known as…