The social media giant is reported to be in the final stages of a takeover deal with Elon Musk.