"The president was delighted to receive them and he promised that all that is needed to be done to reintegrate them into society will be done," Buhari's spokesman, Femi Adesina, told reporters.
"He promised that the presidency will personally supervise their rehabilitation. He mentioned that they will continue with their education."
Presidential aide Bashir Ahmad tweeted a photograph of the girls, most of whom were sitting on the floor of his official residence, as Buhari sat in an armchair, dressed in white traditional robes.
Only state media were in attendance.
The girls, who were among more than 200 abducted by the Islamist militants on April 14, 2014, were released yesterday under a negotiated deal that saw a number of Boko Haram suspects freed from custody.
Adesina said the teenagers had now been "handed over to those who will supervise their rehabilitation". He made no comment on how many jihadists were handed over in the formal exchange.