htlin222/fbpost ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python command line tool for Facebook and Messenger automation.
I want to be able to log in with my own Facebook cookies, save a profile for personal use and another for a page, then run simple commands like posting a status, listing unreplied comments, replying to a comment, and sending Messenger messages by contact name or thread ID. It should also be able to read inbox threads, search for a person, pull chat history, and keep a local cache of contacts so I can message them faster next time.
Use browser automation for the Messenger side, including support for end to end encrypted chats with a PIN that can be entered automatically. For the Facebook post and comment actions, use the site’s internal requests if that is the most reliable approach. Make it feel like a real CLI with clear commands and helpful output, and include a login flow, profile folders, and a daemon mode so sending messages can be faster after the browser is already running. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit