The social media giant will make changes to its platforms to address allegations of consumer protection law violations and the targeting of teenagers through addictive features.