A Lancashire taxi-driver whose posts on social media were a “catalyst” for violent disorder has been jailed for seven and a half years.