Yes, Facebook had to comply and because Facebook doesn't implement end-to-end encryption so that they can data mine their users' chat they had to provide the details. They could alternatively implement end-to-end encryption to protect themselves and their users from these warrants. Something like Signal where the service doesn't know what the messages are that are being sent between users so warrants for seizing that data have no impact on the users' privacy.