Facebook's revenue and user growth in the second quarter of 2018 fell short of investor expectations.