Meta’s success is a dramatic turnaround from just a couple of years ago, when shares cratered amid its pivot to the metaverse