A California tech genius affiliated with Facebook was busted in a sex sting involving an undercover detective posing as a 15-year-old girl, according to published reports.

Dov Katz, a top computer engineer at the Facebook-owned tech company Oculus, was busted on Dec. 21 in Washington state after he responded to an online ad offering sex with a minor.

Katz, 38, had traded communications with the undercover officer, offering to pay $350 to have sex without a condom, GeekWire reported.

When Katz arrived at an Embassy Suites near Seattle with $600 in cash, police were already waiting for him and took him away in handcuffs.

Katz told police that he went to the hotel to rescue the girl, GeekWire said.

Katz’s arraignment is scheduled for January 5, 2017.

His LinkedIn profile says he’s the head of computer vision at Oculus VR. In 2014, Facebook acquired the virtual reality technology company.