Facebook Post Privacy Automation

This project automates the process of changing all post privacy settings from public to "Only me" on Facebook profiles using Python and Selenium. It's designed to simplify privacy management for users who want to reset their Facebook accounts without Facebook's native reset option.

Prerequisites

- Python 3.x

- Selenium

- ChromeDriver (download and specify the path in the code)

How it Works

1. Launches a Chrome WebDriver using Selenium.

2. Logs into Facebook using provided credentials.

3. Navigates to the user's profile.

4. Scrolls down to load all posts.

5. Identifies posts with "Friends" privacy and changes them to "Only me".

6. Saves the changes for each post.

Customization

- Adjust sleep times (`time.sleep`) for waiting periods as needed.

- Modify XPaths and element locators to match changes in Facebook's UI.

- Enhance exception handling to manage potential errors during execution.

Limitations

- Relies on web scraping techniques, which may be affected by changes in Facebook's website structure.

- May require periodic updates to maintain functionality.

Contact Information

Gmail LinkedIn