A terrorist sympathiser has been jailed for 18 months for posting links to a self-proclaimed Islamic State (IS) magazine on his Facebook page.