The apex court had in 2013 said a person, accused of posting objectionable comments on social networking sites, cannot be arrested without police getting permission from senior officers.
The direction had come in the wake of numerous complaints of harassment and arrests, sparking public outrage.
The court had, however, refused to pass an interim order for a blanket ban on the arrest of such persons across the country.
In the present application, Shreya said she came to know through media about the arrest of the boy under section 66A of the Information Technology Act and sections 153A (promoting enmity between different groups on grounds of religion, race, etc), 504 (intentional insult with intent to provoke breach of peace) and 505 (public mischief) of the Indian Penal Code.
She referred to media reports that the boy's parents have clarified that he had only shared the post and didn't upload it on the social media platform.
However, Rampur Superintendent of Police Sadhna Goswami had said that the boy had allegedly confessed that he posted the picture which had a statement attributed to Azam Khan, the application said which also referred to reports that the boy also accepted that he didn't actually understand the meaning of what he was posting.
Rampur district Judicial Magistrate Azad Singh had granted bail to the boy on furnishing two bail bonds worth Rs 20,000 each and asked him to cooperate with police during investigation.
A local court had on March 18 sent the Bareilly youth to 14 day judicial custody.