
It will then proceed to load old messages until it reaches the very first message. Now press Ctrl+ Shift+ J and then paste this code into the lower window that pops up, and then press Enter. Then click the person you want to see the first message with. Then use the Google Chrome browser to go to If you don’t have Google Chrome, then download it. Choose Your Facebook Information in the left pane. I expect to be able to paginate over all pages (I can't even find information in the requests to attempt to paginate to another answer subset), from which I'll save the messages to Json for further processing.To start, use a computer and open the Google Chrome browser. Log in to your Facebook account and open the menu at the far top right.

Messages = graph.request(conversation_id + "?fields=messages&limit=100")Įxcept : Step 3 When the window opens, click Deselect All to clear all the check marks. Scroll to Download Your Information and then click View.

Step 2 When the window opens, click Your Facebook Information. Go to Settings & Privacy in the upper right-hand corner, then click Settings.

#Function to help with the multiprocessingĭef get_conversation_from_id(conversation_id): Step 1 Open your Facebook account, using any device. Graph = facebook.GraphAPI(access_token=token, version = 3.1) Facebook Messenger is the official Facebook. Facebooks official messaging application. So far, I've got this piece of code: import facebook Download the latest version of Facebook Messenger for Android. While I can loop through some messages using facebook-api, there's this concept of paginating that I cannot find documentation about. I've checked other posts, such as Download Facebook Page Private Messages and How to download all Facebook 'posts to page' (without scrolling), but none of them allow to download ALL messages from the page.įacebook requests using the API only returns the results partially, therefore I need to move from page to page to find all messages. I want to download all chat messages in the Facebook Account that I manage to help building a chatbot.
