The extension loads the map in Messenger's Web interface. The data is retrieved from messages sent with location sharing
enabled.

The Marauder's Map simply retrieves the latitude and longitude attached to messages from Javascript objects yourbrowser stores to render Messenger, The Next Web reported.

Facebook Messenger for mobile shares location data like this by default. Facebook pushes Messenger users to enable location sharing when they install the app.