People struggling with thoughts of suicide or self-harm often drop hints to friends in conversation, in emails — even on Facebook. The social network is adding resources to help people having such thoughts, it announced on Wednesday. Starting in the next few months, a post indicating suicidal or harmful thoughts can be flagged by a friend as such, at which point Facebook will be alerted — after advising the flagger to call emergency services if deemed necessary.

"We have teams working around the world, 24/7, who review any report that comes in," the company wrote. "They prioritize the most serious reports, like self-injury, and send help and resources to those in distress."

Facebook

The troubled poster will then receive a message from Facebook saying that someone was concerned about them, and providing options for talking with a friend or mental health expert at the National Suicide Prevention Lifeline. The service will be rolling out over the next few months, but only in the U.S. for now — though similar capabilities are being worked on for other countries.

IN-DEPTH

SOCIAL

Facebook knows suicide prevention is crucial, and they're doing something about it: http://t.co/nqLDH5RGSZ pic.twitter.com/Fiai4adk9T — Seventeen Magazine (@seventeenmag) February 26, 2015

What a great use of a powerful platform - Facebook Adds New Feature For Suicide Prevention http://t.co/LWBDTmhvEh via @HuffPostTech — Rita Buscher (@Buscher) February 26, 2015

UW researchers help Facebook with suicide prevention http://t.co/SsgIihw0gD — KING 5 News (@KING5Seattle) February 26, 2015

—Devin Coldewey