Rohit Sharma's 103 from 94 balls in India's successful chase of 265 separated him from Kumar Sangakkara's record four hundreds in 2015.
Pictures of Dhoni sucking his thumb and spitting blood emerged on the internet amidst all the criticism he faced from the fans.
Social media was flooded with birthday wishes from fans, cricketers and other sports personalities to wish Dhoni on his birthday.
The Caribbean side scored 311 for six in their 50 overs in Leeds and although the Afghans put up a brave fight, they ultimately went down by 23 runs.
India opener Rohit Sharma hit his fourth century of the World Cup as Virat Kohli's side booked their place in the semi-finals with a 28-run win over Bangladesh at Edgbaston on Tuesday.
Uncapped fast bowler Jofra Archer has been included in England’s 14-man squad announced on Saturday for next week’s Ashes opener against Australia, with all-rounder Ben Stokes re-appointed as vice-captain. The pair both enjoyed starring roles in England’s stunning World Cup final win over New Zealand
Veteran pacemen James Anderson and Stuart Broad hold the key to England’s bid to reclaim the Ashes this summer, according to their former team-mate Steve Harmison.
It was the second such incident at the event in England and Wales, after a banner was flown over the same ground in Leeds during last week's match between Pakistan and Afghanistan.
Malik had admitted last year that he intended to quit one-day cricket after the World Cup and he followed through with that plan after Pakistan's 94-run win at Lord's.