TikTok, formerly known in the U.S. as Musical.ly, has agreed to pay millions in fines for illegally collection of personal information from children.