Is there any way to export all the Facebook historical data from your profile (contacts, photos, videos, posts, links, comments, etc.) to a local storage?
This web app describes steps to achieve what you're looking for I think.
It appears this addon was removed. It used to be called ArchiveFacebook, but I don't see it on the mozilla site anymore.
Facebook now lets you do this directly from their site.
(1) Go to "Account Settings"
That's all there is to it.