Please be aware that Facebook has sued previous scrapers out of existence and left the founder holding a bag of $3 million in personal liability. See Facebook, Inc. v. Power Ventures, Inc.
Executing a program that scrapes data from Facebook is illegal in the United States, at least until you get an explicit license from Facebook to do so. IANAL and this is not legal advice; just a layperson's opinion.
This implementation could theoetically work with your own profile (which is not as useful since Facebook lets you download that data), but it definitely will not work with other profiles.
Executing a program that scrapes data from Facebook is illegal in the United States, at least until you get an explicit license from Facebook to do so. IANAL and this is not legal advice; just a layperson's opinion.