Meta earns revenue by selling ad space on platforms like Facebook and Instagram and is expanding into the metaverse with virtual reality products.