Micro AI Tool

Facebook & X Post Rewriter

This project rewrites rough social posts into cleaner, stronger versions for different platforms without using a database.

What It Does

Setup

  1. Open functions/config.local.php.
  2. Add your OpenAI API key to openai_api_key.
  3. Keep or change the default model in openai_model.
  4. Optional: add adsense_client and adsense_sidebar_slot to activate the right sidebar ad area.
  5. Make sure PHP curl is available on the server.
  6. Load /FacebookXPostRewriter/ in your browser through MAMP.

How To Use

  1. Paste the original post draft.
  2. Select the target platform.
  3. Choose the rewrite mode and tone.
  4. Add goal or context if needed.
  5. Click Rewrite Post.
  6. Review and copy the result from the popup modal.

Folder Structure

Security Notes

Troubleshooting