States are taking action to regulate social media use among children and teens, with laws requiring parental consent and limiting targeted marketing.