Online social networks used to be just gathering places for friends and long-lost acquaintances. Then the marketers arrived, followed by politicians and job recruiters — all looking to tap into a growing mass of young people who are spending much of their time on the Web.