EU is working for years on laws to protect the citizens rights from this internet companies, the laws take years to be created and when done are announced and it also takes a long period of time before the laws will start to apply.
Do you prefer that we create laws for fixing problems that do not exist yet?
You misunderstand. Facebook probably knew that the new law was in the making, but they probably thought: by the time this law passes, everybody is doing it!