Facebook, Twitter can help manage depression: Study