Bharti, author of various books dealing with problems faced by Dalits, in his post said that the Gautam Budh Nagar SDM was suspended for alleged demolition of wall of a mosque.
He went on to say that in Rampur a madarsa was recently demolished and its manager was placed behind the bars but no action was taken against the officials who were deputed to demolish the institution.
The madarsa was demolished because it was allegedly constructed on the land of a graveyard, sources said.
In the complaint, Azam Khan's PRO Fasahat Ali Khan alleged that Bharti had made a derogatory remark against the UP minister.
On the complaint, a case was registered against Bharti at Civil Lines police station and he was arrested, police said.
Bharti was produced before the court of Chief Judicial Magistrate V K Pandey, which granted him bail.