NEW YORK (AP) — Online game maker Zynga Inc. reported a net loss for the last three months of 2011, weighed down by hefty stock-compensation expenses and other costs in its first quarter as a public company.

Its adjusted earnings and revenue inched past Wall Street's expectations, but that wasn't enough to lift the stock of the company that is behind the most popular games played on Facebook. Zynga's stock fell 6 percent in after-hours trading following its report.

San Francisco-based Zynga said Tuesday that it lost $435 million, or $1.22 per share, in the fourth quarter. That's down from earnings of $16.1 million, or 5 cents per share, a year earlier when it was still privately held.

Adjusted earnings were 5 cents per share in the latest quarter, surpassing Wall Street's expectations by 2 cents. This figure excludes one-time items, including $510 million in stock-compensation expenses triggered by Zynga's initial public offering of stock in mid-December.

Revenue rose 59 percent from a year earlier to $311 million as Zynga grew its user base, ad revenue and the money it makes from games such as "CityVille," ''FarmVille and "Zynga Poker." On average, analysts surveyed by FactSet were expecting $302 million.

Investors may have been hoping for more. Zynga's revenue climbed just 1 percent, compared with the third quarter. In contrast, its revenue grew by double-digit percentages from one quarter to the next for the year's first three quarters.

Zynga's IPO raised $1 billon, at the time the largest IPO by a U.S. Internet company since Google's in 2004. Facebook, though, is expected to dwarf both when it goes public in the next few months. The world's largest online social network plans to raise $5 billion in an IPO that could value the company at $100 billion. In comparison, Zynga's market capitalization was about $10 billion as of Tuesday.

Zynga relies on its Facebook games for nearly all of its revenue, though it has been working on expanding to other areas, notably mobile devices. "Words With Friends," a Scrabble-like game played mainly on smartphones, is one of its best-known titles. Of the 12 games Zynga launched last year, eight were for mobile devices.

The company said it had 54 million daily active users in the fourth quarter, up 13 percent from 48 million a year earlier.

"Zynga set new records in the year in terms of audience size, revenues and bookings," CEO Mark Pincus said in a statement. "We saw great momentum in mobile and advertising and ended the year with a strong pipeline of new games."

For all of 2011, Zynga lost $404 million, or $1.40 per share, down from earnings of $27.9 million, or 11 cents per share, in 2010. Revenue nearly doubled to $1.14 billion from $597 million. The company ended the year with 2,846 workers, 92 percent more than at the end of 2010.

The company expects adjusted earnings of 24 cents to 28 cents in 2012. Analysts are forecasting earnings of 23 cents per share.

Getting no love from investors on Valentine's Day, Zynga's stock fell 77 cents, or 5.4 percent, to $13.48 after hours. It closed up 93 cents, or nearly 7 percent, at $14.35 before the earnings report.

The shares have ranged from $7.97 to $14.44 since their debut at $10 in December.