The Facebook parent posted quarterly profit of $11.6 billion and reported its largest sales in years.