Kumayl Raza was arrested and charged after Rida Rustam accused him of sending her threatening, sexual messages.
Rustam later confessed to having fabricated the messages, and is facing charges herself.
An expert working for Raza's defense analyzed the teens' phones ultimately discovered the alleged ruse and informed police.
On the day of his high school graduation ceremony, class president Kumayl Raza was supposed to be delivering a commencement speech, but instead stood on his front lawn praying in pajamas while a SWAT team searched his house.
A girl had accused him of threatening to shoot up his graduation ceremony at Plymouth High School, the same girl who had accused him of sexually threatening and stalking her on Instagram, in text messages and emails, and convinced authorities to