The social media giant is also making it easier to buy products without leaving its apps.