The social media giant’s push into artificial intelligence and the metaverse took center stage at the developer-centric event.