The Facebook parent’s hiring and expenses will rise next year, putting pressure on ad revenues to keep pace.