.The social media titan is spending billions on artificial intelligence and items for virtual and augmented reality.