A California judge has thrown out most of the claims against Facebook in a privacy suit claiming it shared personal information with advertisers without users’ consent. However, the judge gave plaintiffs a chance to refile five of the eight dismissed claims.