Growth is accelerating for the parent company of Facebook and Instagram, with increased automation improving ad performance.