The 23-year-old’s severe hamstring injury, which needed surgery, has kept him out of action for the last four months.
In June, the striker was injured while serving with the Republic of Ireland on an international trip.
But Obafemi has now recovered and played for the Under-21 team against Blackburn Rovers in their local rivalry at Gawthorpe.
The starting lineup also includes Lawrence Vigouroux, CJ Egan-Riley, Han-Noah Massengo, and Darko Churlinov.
Obafemi joined on loan from Swansea City in January and made 14 appearances for Vincent Kompany’s team in the second part of the previous season.
Once the season was over, the relocation from South Wales became permanent.
“Surgery went well yesterday and I’m feeling good,” he wrote.
“Time to rest but I can’t wait to be back on the pitch with the boys and to see you Clarets soon!
“Thank you to the medical team, doctors and nurses who have been with me every step of the way.”
In other news, Nathan Redmond made his way off the bench in Burnley’s 3-0 loss to Brentford on Saturday after recovering from an injury.
Even though Ameen Al-Dakhil’s fitness was questioned before to the game, he was declared fit to play. Meanwhile, Anass Zaroury, who had been dropped from consecutive teams, made a comeback.
Manuel Benson, Johann Gudmundsson, Jordan Beyer, and Hjalmar Ekdal are all still on the sidelines.