Facebook Messenger SQL Queries | David Bieber
Last week I dumped all my Facebook messenger messages into a Postgres database. I have it set up so that new messages are added to the database in real time as they are sent. Like I did in a
previous snippet for analyzing my browsing history, I’ll use this snippet to sketch out some useful queries for analyzing my message history.
Table Schemas
I have two tables of messages. messenger_archive contains all messages from when I first joined Facebook in August 2008 through February 2020. messenger contains messages from February 2020 through now, and is updated in real time.
David Bieber