A man who shared a message on Facebook encouraging people to damage Ultra Low Emission Zone (Ulez) cameras has been sentenced.