Youngsters are avoiding Facebook—but not the firm’s other platforms: Facebook owes its resilience to savvy acquisitions and tolerant regulators