A worm that spreads through Facebook by using the news feed has been detected.