An app that encourages teens to be nice to each other has been acquired by Facebook for an undisclosed fee.