A New Jersey man who used dating apps to lure and kill three women five years ago was sentenced Wednesday to 160 years in prison after a trial in which it was revealed that friends of one victim did their own detective work on social media to ferret out the suspect, AP reported.

Khalil Wheeler-Weaver, 25, sat motionless as the judge gave the sentence in state court in Newark. The sentencing was preceded by emotional statements by family members of victims Robin West and Sarah Butler.

In a brief statement before they spoke, Wheeler-Weaver denied responsibility, telling Superior Court Judge Mark S. Ali that he was framed.

The sentences covered three murders, one attempted murder and other counts including kidnapping, aggravated arson, and desecration of human remains.

The Essex County prosecutor's office had credited friends of Butler, a college student from Montclair, with using social media to help police find Wheeler-Weaver. They gained access to her social media accounts, set up a fake account, lured Wheeler-Weaver to a meeting in Montclair and notified police, according to prosecutors.

A fourth woman who survived an attack and testified at Wheeler-Weaver's trial also provided crucial information that helped investigators, since the details of her attack were similar to those of the other victims.

Prosecutors presented evidence at trial that Wheeler-Weaver, then 20, used the dating apps to lure the women for sex and then strangled them. Their bodies were found between September and December 2016 in northern New Jersey.