Most of the $3.7 billion revenue that Facebook amassed in 2011 came from advertising, according to the social media company's initial public offering filing late Wednesday. But about 15 percent came from "payments and fees," mainly from gaming applications like "Farmville."