Danny Kay, 26, of Derby, who spent more than two years in jail for a rape he did not commit, had his conviction quashed after a relative uncovered a series of bombshell Facebook messages - missed by police - that proved his innocence.
In the latest rape case to highlight failings in the criminal justice system, The Mail on Sunday can reveal that the jury at Danny Kay's 2013 trial was only shown doctored transcripts of crucial Facebook chats between Mr Kay and his accuser.
In an exclusive interview with the MoS, Mr Kay said archived versions of the original messages - proving he had consensual sex with his accuser - were found by his sister-in-law, Sarah Maddison .
When she showed the Facebook exchange to the officer in charge of the investigation, he said: 'How did you know how to find the messages and we didn't?'
The Appeal Court heard earlier this month that police relied on an 'edited and misleading' account of the Facebook conversation that was given to them by the complainant in the weeks after she claimed she was raped by Mr Kay.
Mr Kay, 26, said: 'Even now, with the conviction quashed, I still can't believe that it took years of pain and stress for this nightmare to end. And the terrifying thought is that if the police and justice system could fail me like this, it could happen to anyone.