Meta has three months to comply with Indian government directions that could affect how WhatsApp operates in the country.