Facebook said on Monday it will open three new centers in Europe to train people in digital skills and committed to training 1 million people over the next two years, part of the social media giant's drive to show its contribution to the bloc.

The U.S. company — which has faced regulatory pressure in Europe over issues ranging from privacy to antitrust — said it would open three "community skills hubs" in Spain, Poland and Italy as well as investing €10 million ($12.2 million) in France through its artificial intelligence research facility.

"People are worried that the digital revolution is leaving people behind and we want to make sure that we're investing in digital skills to get people the skills they need to fully participate in the digital economy," Sheryl Sandberg, Facebook's chief operating officer, told Reuters.