Facebook-Scraper is a project mainly written in JavaScript, it's free.
Javascript project to scrape friend data from Facebook's mobile site
Anyone using this product must aware of the violation of any Terms of Service agreements on any pages in association, but not limited to, Facebook.
I am not affiliated with Facebook.