Download your messages from Facebook as JSONs and run this parser in the directory with the message.json file.
The parser will write a CSV with information and text files for creating word clouds or other analysis.
npm install
npm start "PATH_TO_FACEBOOK_CHAT_DIRECTORY"