Python version 3.11+. It might work with earlier versions, however I didn't check.
A small program for decrypting (unmangling) links shared on Facebook. It's simple to use. Open a terminal (or command line), enter the desired URL when prompted, copy the result.
A mangled URL generally has the following form:
The resulting URL will look something like this:
This program preservs the original URL parameters, such as fragments or query. The only change it does is to remove Facebook's added fbclid
query parameter. Facebook uses it to track the URL's usage.