-
Clone the repo
https://github.com/criticalRobin/facebook_auto_poster.git
-
Install python packages (opening a terminal in the project folder)
python -m pip install -r requirements.txt
-
Create a
.env
file anddata.json
file in the project folder.
Update your chrome path in the .env
file (note: the chrome path is the folder where chrome data its installed)
CHROME_PATH = C:Users<<your-user-name>>AppDataLocalGoogleChromeUser Data
-
Open the "data.json" file, and add the groups where you want to post, and the text of the post in the "text" field
{ "posts": [ { "text": "text post 1", "image": "{image path}" }, { "text": "text post 2", "image": "{image path}" }, { "text": "text post 3", "image": "" }, ], "groups": [ "https://www.facebook.com/groups/sample-group-1/", "https://www.facebook.com/groups/sample-group-2/", "https://www.facebook.com/groups/sample-group-3/", "https://www.facebook.com/groups/sample-group-4/", "https://www.facebook.com/groups/sample-group-5/", "https://www.facebook.com/groups/sample-group-6/", "https://www.facebook.com/groups/sample-group-7/", "https://www.facebook.com/groups/sample-group-8/" ] }
-
Run the post_groups.py script
python __post_groups__.py
-
Wait until the script finish, and enjoy your posts in the groups