People who have more connections with an online community have more success in losing weight, a new study finds.