KUALA LUMPUR: An unemployed man was sentenced to six months in prison and fined RM10,000 or three months prison in default, by the Sessions Court here after he pleaded guilty to posting an offensive message against the Sultan of Selangor and failing to provide his Facebook password.