Switch on to the facebook account of which you want to retrieve the data.
Go to the settings button on the top right corner of your facebook account.
From the drop down list, go to the account settings.
Click on download a copy button at the extreme bottom of the page you are directed to.
Click on “Start my archive” button in the green color.
Now you need to re enter your password for verification and security purposes.
Downloading the archive is a long procedure and can somewhere between 3 to 4 hours. So you need to be quite patient. This step would assemble your entire archive and will take some time.
Facebook will send a link to you to start downloading your archive. Just click on it and your downloading would start.
The downloaded file would be a zip file which needs to be extracted to some folder.
Index.html file in your extracted folder is the file that you are looking for.
Caveat: This extracted folder contains a lot of your personal data so it must be kept carefully and securely.