Facebook is scrapping its facial recognition technology amid public backlash and a class action settlement.