With the filing of the two US lawsuits, Facebook is the second big tech company to face a major legal challenge.