Facebook will begin asking users if their data can be used to power services like facial recognition in a move to help it comply with a massive new European data law coming into effect in just over a month.

In a blog post late Tuesday, the social network said it will:

Ask users whether they want Facebook to use data from partners, such as other websites, to show them ads.

Ask users to choose whether to continue sharing information such as your political and religious views and relationship status.

Start allowing facial recognition technology if users wish to. This is used to suggest friends you may want to tag in photos and also detect when others might be attempting to use an image you have uploaded as their profile picture. Facebook turned off this feature for Europe in 2012 after pressure from regulators and privacy campaigners.

Ask people to agree to Facebook's updated terms of service and data policy.

"We're not asking for new rights to collect, use or share your data on Facebook, and we continue to commit that we do not sell information about you to advertisers or other partners," Facebook said in a blog post Tuesday.

European Union users will start seeing these requests this week and they will eventually be rolled out globally.

"We'll present the information in the ways that make the most sense for other regions," Facebook said.

Facebook's announcement comes ahead of the implementation of the European Union's (EU) General Data Protection Regulation (GDPR) on May 25. It replaces a more than two decade year old data law and requires companies to give users more control over their data. Here's everything you need to know about GDPR.