This is an archived article that was published on in 2016, and information in the article may be outdated. It is provided only for personal research purposes and may not be reprinted.

Kathmandu, Nepal • Nepal has ordered a Canadian man to leave the country within two days for posting messages on social media that could disturb social harmony, officials said Tuesday.

Home Ministry official Yadav Koirala said Robert Penner's work visa was revoked because a report prepared by authorities suggested his critical posts on Twitter threatened national unity.

"He was not abiding by our laws and was investigated for suspicious activities," Koirala said.

Penner, who has worked for a software company in Nepal for three years, was detained on Monday for questioning. He was picked up by police from his office and spent the night in detention. The government made the decision to expel him late Tuesday. Koirala said he was released from detention and handed over to a local family friend on the condition that he leaves the country in two days.

Penner has criticized the new constitution adopted last September and the government's handling of violent ethnic protests.

Members of the Madhesi minority have opposed the constitution, saying it gave them a small state that did not cover their population. Protests by the group left more than 50 people dead and blocked the border with India, creating severe shortages of fuel and medicines all over Nepal.

Kedar Neupane, head of Nepal's Immigration Department, said Penner had violated the terms of his visa, which say he cannot become involved in any activities against Nepal or its government and will be expelled if found doing such activities.

Penner could not be reached for comment.

"Nepal Immigration released me after 26 hours in custody, canceled my working visa and gave me 2 days to leave Nepal. Thanks to all supporters," Penner said on Twitter.

The constitution guarantees freedom of speech and it is rare for foreign citizens to be expelled from Nepal for criticizing the government.