Facebook privacy battle goes to court