Facebook Inc.’s initial public offering has prompted a dash to the courthouse by plaintiffs attorneys representing shareholders who invested in the social-media giant.

Meanwhile, the company faced uncommonly swift regulatory scrutiny on multiple fronts.