As a father of 4 ranging from 10 to 30+, I certainly hope the law will not practically work and that kids will find a way to use social media.
I don't think I would wish social media on any child, though I believe it's a problem that can be solved not by more laws, but by better parenting.
And that's the key point. The crucial one.