Employers who check a job candidate's Facebook or Twitter profile before deciding whether to hire them may be in breach of European law, top regulators have said, as the EU tightens its data protection policies.

According to guidelines published by EU data protection agencies, employers will from now on require a "legal ground" before checking the social media profiles of potential employees. The regulators add that data collected from a search must be necessary and "relevant to the performance of the job".