I have just coded the iMacros script to UnFollow the Following users on Facebook. Well you have to install iMacros first. Install from here..
Crome:
https://chrome.google.com/webstore/detail/imacros-for-chrome/cplklnmnlbnpmjogncfgfijoopmnlemp?hl=en
Firefox:
Now add a new script in imacros or edit the Current.iim
Place this iMacros code.
https://drive.google.com/file/d/0B4MdCLSfXUEceXdRaDlIMk1xQlk/edit?usp=sharing
https://drive.google.com/file/d/0B4MdCLSfXUEceXdRaDlIMk1xQlk/edit?usp=sharing
Note: Replace the "USERNAME" from the 7th line in the script with your facebook username.And then just play the loop. This I have build this imacros very cleverly. I have used proper timeout and the tags. So i suggest you to not change any single word from the script except the Username.
Script is working fine in both browsers and tested by several users. Kindly comment if you are feeling any problem with the script.