The French government is asking media companies to prepare for restrictions on social media platforms.