(CNN) Massachusetts Attorney General Maura Healey announced Saturday that her office is opening an investigation into Facebook and the data firm Cambridge Analytica, which has ties to the Trump campaign.

"Massachusetts residents deserve answers immediately from Facebook and Cambridge Analytica. We are launching an investigation," Healey tweeted.

#BREAKING: Massachusetts residents deserve answers immediately from Facebook and Cambridge Analytica. We are launching an investigation. https://t.co/wjqmHa6zjm — Maura Healey (@MassAGO) March 17, 2018

Healey's office confirmed to CNN it has opened an investigation and has been in touch with Facebook about the timing, reach and legal implications of the matter.

On Sunday afternoon, Sen. Ed Markey, a Democrat from the state, called for the two companies to testify before the Senate Commerce Committee.

"The recent revelations about Facebook and Cambridge Analytica raise serious questions about the extent to which the social media giant respected user privacy and whether it violated its consent decree with the FTC," Markey said in a statement. "Facebook and Cambridge Analytica should be made to testify before the Senate Commerce Committee so that we can get to the bottom of these disturbing reports that may impact tens of millions of Americans."

Read More