Facebook on Wednesday reported that its quarterly profit surged as its ranks of monthly users closed in on two billion,…