You may restrict other people posting on your wall by disabling “Account -> Privacy Settings -> Customize Settings -> Things others share -> Friends can post on my Wall ( Enable / Disable )
Here is bit defender tool(Facebook app) that checks your profile for potential threats on your profile.
We think that Facebook has to come up with stringent security tools/measures to check the hackers spreading such spam links. Users must also be active in sensing what is spam and what is not, rather than just clicking on crazy stuff.
This is not the first time, there have been many click-jacking links earlier as well.
Stay safe! Happy browsing!