The Facebook parent is the latest to signal more capital spending ahead, but advertising is holding up.