Updated

Facebook's sprawling campus in Menlo Park, Calif., is so full of cushy perks that some employees may never want to go home. Soon, they'll have that option.

The social network said this week it is working with a local developer to build a $120 million, 394-unit housing community within walking distance of its offices. Called Anton Menlo, the 630,000 square-foot rental property will include everything from a sports bar to a doggy day care.

Even in Silicon Valley, where tech companies compete to lure coveted engineers with over-the-top perks and offices that resemble adult playgrounds, Facebook's plan breaks new ground.

A Facebook spokeswoman said employee retention wasn't a major factor in the real estate push. "We're certainly excited to have more housing options closer to campus, but we believe that people work at Facebook because what they do is rewarding and they believe in our mission," she said.

Some employees had inquired about places to live near the corporate campus, she said, amid a housing shortage in Menlo Park.

More On This...

Real estate prices are skyrocketing in Silicon Valley, and in San Francisco, up 24 percent in the fourth quarter of 2012 in the Bay Area, according to DataQuick, a real-estate data firm.

The development conjures up memories of so-called "company towns" at the turn of the 20th century, where American factory workers lived in communities owned by their employer and were provided housing, health care, law enforcement, church and just about every other service necessary.

Read more about the Facebook 'company town' at The Wall Street Journal.