Nigeria has seen a growing number of social media stars who use comedy to comment on social and political issues.
Mubarak Isa Muhammad and Muhammad Bala were arrested last week after posting their video – in which they mocked the governor for alleged land grabbing, corruption and sleeping on the job – to TikTok and Facebook.
Prosecution lawyer Wada Ahmed Wada said the men had defamed the governor and that their action was capable of disturbing public peace.
They pleaded guilty and asked for leniency, but the judge ordered them to be given 20 lashes each, to pay a fine of 10,000 naira (£20) and to clean the court premises for 30 days. They were also ordered to publicly apologise to Mr Ganduje on social media.
Their lawyer, Bashir Yusuf, told the BBC they would not challenge the judgement, given it was a ”non-custodial” sentence – meaning those convicted would not be jailed.
Nigeria has seen a rapid increase in TikTok users in recent years, particularly among young people.
These users sometimes mock public figures, including government officials, by clipping images or videos, often to create comedies that attract massive followers to their accounts.