Companies like Facebook are allowed to treat the cost of non-cash compensation, such as stock options, as an expense that reduces profits, essentially the way they treat cash compensation such as salaries.
FORBES: Facebook Doesn't Pay Taxes On Its Profits: So What?