LOS ANGELES — A 25-year-old California man has been sentenced to 13 years in federal prison for attempting to aid al-Qaida.

A U.S. District Court judge in Los Angeles handed down the punishment Monday to Sinh Vinh Ngo Nguyen, also ordering 10 years of supervision when he is released.

Prosecutors say Nguyen used Facebook to connect with al-Qaida and planned to train its fighters in Pakistan.

Nguyen was arrested last year after several meetings with a man he thought was a recruiter but who was really working for the FBI.

His public defender says Nguyen has a personality disorder.