In July, France's parliament approved legislation banning both social media access for children under 15 and mobile phone use in high schools.