This is a simple application to fetch all messages from any chat from Facebook Messenger, giving only it's userId and your cookie
Sometimes you'd like to read a really old chat that you had with some friend or your girlfriend. But it's really annoying to keep scrolling up forever.
This scrapper fetches everything at once, and then display at your screen
- go to https://messenger.com
- open a chat you want to scrap
- open chrome dev tools
- scroll the chat up to fetch new messages
- search for a request call to https://www.messenger.com/api/graphqlbatch/
- copy the
cookie
information and paste into the fieldcookies
- copy the
fb_dtsg
paramenter and paste into the fieldfb_dtsg
- search for the
queries
parameter in Form Data and then find theid
property, this is theuserId
- Click in
Submit
and then inshow messages
If you don't trust me to give me your cookies, you can run it locally. But I assure that I don't store, I only forward to the facebook API
git clone [email protected]:Daymannovaes/messenger-scrapper.git
npm install
npm start
- It will start a react server in
localhost:3000
- and will start a offline server in
localhost:4000
to fetch data from facebook