In another sign of increased regulatory crackdowns over privacy breaches in health care, online therapy platform BetterHelp must pay $7.8 million to settle Federal Trade Commission charges that for years it shared users’ sensitive mental health information with third parties, such as Facebook and Snapchat, which used it for targeted advertising.

Under the settlement, which was approved by the commission 4-0 and announced Thursday, BetterHelp will be banned from sharing health data for advertising.