Facebook Inc. COO Sheryl Sandberg and Twitter Inc. CEO Jack Dorsey headed to Washington, D.C., for a hearing in front of the Senate Intelligence Committee Wednesday on social media’s role in combatting election interference.

The executives—two of the biggest names in tech—discussed changes their companies have made since the 2016 election and answered probing questions on bots, selling data and transparency in content moderation.