This is the latest step in a companywide effort to bring Facebook’s individual products and apps closer together. The belief is that if users can make purchases on Instagram, Messenger and WhatsApp, then Facebook’s advertising will grow more valuable, and users will spend more time inside the company’s apps.