The changes and additional safeguards come as the social media giant faces relentless criticism over harms to children.