Posts on a social media channel were a “catalyst” for violent disorder which broke out after three girls were stabbed at a dance class, a court has heard.