Social media platforms will now have to comply with guidelines or advisories issued by the IT ministry, or risk legal action.