Facebook posts import script

hi. has anybody already written a script to convert the Facebook posts export (a huge JSON) into nice .md to be managed by Obsidian?

(i write a lot in Facebook and most of the posts are interesting knowledge atoms… i’d like to update my vault every few months)

i’m trying this script… i’ll let you know how it works:

1 Like

i couldn’t find a converted. so i started writing one.
it works (very basic, but it’s a starting point):

Not knowing the format of these Facebook posts, there is one thing I would like to suggest and that is to extend the checks for duplicate files.

Currently you check if this run of the script wants to reuse the same filename, but there is no check whether any given file is already existing from a previous run. In other words, you’re currently running the risk of overwriting previous runs of your script without any warnings.

You could potentially also look into some format conversion if that is applicable, but getting started is half the work, so keep at it. When you got something which you feel workable, feel free to post it with an explanation in Share & showcase .

hi. indeed a few hours later i did the check for multiple posts in a day, writing multiple .md files. please check! thank you!

Sir, I have exactly the same problem. Many chaotic fb posts and comments. But I can’t code. Is there a tutorial for newbies on how to do what you accomplished here? Thx!

So I tried. Here’s the result, in a comment on my fb. Enjoy.

Have you thought about wrapping this script in a plugin for Obsidian?


yes! i thought about it and … who knows :slightly_smiling_face:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.