Gardening on a roof top is great, but it can get hot! Heat stress on your newly transplanted tree is probably causing the wilting. Go to Home Depot, and buy yourself a dolly, and roll your tree around the roof and find some shade for your tree. Then, gradually after a few weeks, bring that tree into brighter and brighter light, then into sun...morning sun is best. Make sure that tree stays hydrated, and you don't cook those roots...keep that root zone cool, even in the shade, if necessary. The leaves need the sun, not the roots. The leaves "perk up" at night because the soil, and surrounding air cools off, and the roots recover.
Also make sure the soil is free draining, and not too water-retentive, or you'll drown your tree.
Get back to us if the tree starts to fail...and don't wait too long to ask more questions if the tree doesn't begin to thrive in a few weeks.
Good luck.
Frank
PS....I forgot...welcome to the forum. If you want to grow figs, this is the place!