The deleted data from Facebook can be retrieved in case it is required for the usage of the courts under the following provisions:-
Section 69 of the IT Act provides the government with the powers to issue directions for the interception, monitoring or decryption of any information through a computer resource.
Section 69(3) of the Act conveys that the subscriber or intermediary or any person-in-charge of the computer resource shall when called upon by any agency referred to in sub-section (1), extend all facilities and technical assistance to–
(a) provide access to or secure access to the computer resource generating, transmitting, receiving or storing such information; or
(b) intercept, monitor, or decrypt the information, as the case may be; or
(c) provide information stored in computer resource
Section 69B of the IT Act contains provisions as to how this can be done. According to Section 69 B (1), the Central Government has the power to authorize any agency to collect data from any computer source, by carrying a notice out in the Official Gazette of India.
Section 91 of the CrPC empowers the Courts or any officer in charge of a police station to ask anybody for any document or any other ‘thing’, or summon any person with such a document or thing in the court.
Now in order to seek remedies in Law after the concerned officer in charge refused to register your complaint, you can approach the Superintendent or the Commissioner of Police under s154(3) whereby he may investigate the case himself or give directions to his subordinate to register the FIR and initiate an investigation in the matter.
Alternatively, the informant is legally entitled to file a complaint to the Judicial Magistrate/ Metropolitan Magistrate u/s 156(3) read with Section 190 of the criminal procedure thereby requesting the FIR to be registered by the police and commencing investigation into the matter.
Under section 166A(c) of the IPC, if the Public servant concerned fails to record any information given to him under sub-section (1) of section 154 of the Code of Criminal Procedure, 1973, in relation to a cognizable offence punishable under section 326A, section 326B, section 354, section 354B, section 370, section 370A, section 376, section 376A, section 376B, section 376C, section 376D, section 376E or section 509 of the Indian Penal Code, he is punishable with rigorous imprisonment for a term which shall not be less than six months but which may extend to two years, and shall also be liable to fine.
Hope I was able to solve your query