Facebook has a appropriate API that you can use for assorted purposes. This API will as well accommodate you with simple admission to any contour data, with restrictions.
You acquire to accumulate in apperception that just scraping Facebook user profiles is actionable in several countries as it is advised a privacy invasion. The fines for this are calmly six figures or more, additional possible jail time if you abolished the collected data. So, use the Facebook API and accept those restrictions!
Also, Facebook keeps clue of all visits so if you write a Scraper outside their API, you would basically be accomplishing a lot of page requests, which will be flagged and can result in your access to Facebook getting revoked, your IP address being blocked plus a notification to the local police about suspicious hacking attempts. Don’t blend with Facebook!