A registered sex offender who breached his court order by creating fake accounts on social media has been jailed.