Facebook have paid a 10-year-old boy a whopping $10,000 (€8,700) after he identified a problem with the company’s photo-sharing app Instagram.

Facebook offers a ‘bug bounty’ for anyone who reports any weaknesses with any of their platforms.

Jani has now become the youngest ever recipient of the prize money after discovering problems with the comments section on Instagram when malicious code was typed in.

“I could have deleted anyone's comments from (Instagram accounts). Even Justin Bieber's," Jani said of the problem.

Jani is even too young to have his own Instagram and Facebook accounts under their terms of service which makes his discovery even more impressive.

Learning how to code from YouTube videos, he is considering a career in data security which he seems to be already highly qualified.

Jani is planning on spending his newfound fortune on a new bike and a football.