Metformin promotes the osseointegration of titanium implants under osteoporotic conditions by regulating BMSCs autophagy, and osteogenic differentiation.