The social-media platform’s earnings outpaced Street estimates, but that wasn’t enough for investors.