As I understand it, things go like this.
Detective: "give me all this users data and don't tell them you did."
Facebook: "Without a court issued gag order we will tell the user."
Detective: "Ok, I'll get a court issued gag order and get back to you." (LEO have this part down pat)
So where is the problem exactly?