If there is a Subpoena or Search Warrant for FB messages, FB has no choice to hand them over. However, FB should have fought like hell in the courts to not hand those messages over.
They made a decision not to.
So showing up (at thousands of courthouses a year) is the default. If you’re helpful (to the prosecution), we will let you do things by email.