Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/horstmannmat/facebookpageposter
Since facebook blocked all APIs to post on pages, we need to use selenium to post it automatically
https://github.com/horstmannmat/facebookpageposter
facebook facebook-bot facebook-post-bot facebook-posting selenium
Last synced: about 2 months ago
JSON representation
Since facebook blocked all APIs to post on pages, we need to use selenium to post it automatically
- Host: GitHub
- URL: https://github.com/horstmannmat/facebookpageposter
- Owner: horstmannmat
- License: gpl-3.0
- Created: 2018-08-22T23:48:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T03:18:11.000Z (about 4 years ago)
- Last Synced: 2024-12-15T21:42:37.091Z (about 2 months ago)
- Topics: facebook, facebook-bot, facebook-post-bot, facebook-posting, selenium
- Language: Python
- Size: 52.7 KB
- Stars: 17
- Watchers: 2
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Facebook Page Poster
Since Facebook blocked the apps to post on page, read more [here](https://developers.facebook.com/docs/pages/).
I need to use Selenium
## Linux
### Prerequisites* Gecko Driver for Firefox
Download the selenium Driver for firefox [here](https://github.com/mozilla/geckodriver/releases).## Windows
### Prerequisites
* Install [Firefox](https://www.mozilla.org/pt-BR/firefox/new/)
* Install [Gecko Driver](https://github.com/mozilla/geckodriver/releases) for Windows
* Extract geckodriver.zip and move the geckodriver.exe to `C:\Program Files (x86)\Gecko Driver` (probably you will need to create this folder)### Facebook Credentials
#### Set the facebook credentials:
- Write on the file credentials.txt the email and password to log in (see the example file)
```
```
## Usage```
import FacebookPagePosterposter = FacebookPagePoster()
poster.page_url = 'https://m.facebook.com/PAGE_URL/'
poster.email = 'YOUR_EMAIL'
poster.password = 'YOUR_PASSWORD'
poster.firing_up_driver()
poster.sign_in()
poster.post("YOUR MESSAGE")
poster.delete("POST_ID")
```
or you can use setup
```
import FacebookPagePosterposter = FacebookPagePoster()
poster.setup('PAGE_ID','YOUR_EMAIL','YOUR_PASSWORD')
poster.post("YOUR MESSAGE")
poster.delete("POST_ID")```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
* **Matheus Horstmann** - *Initial work* - [horstmannmat](https://github.com/horstmannmat)
See also the list of [contributors](https://github.com/horstmannmat/spottedPoster/graphs/contributors) who participated in this project.
## License
This project is licensed under the GPL v3 License - see the [LICENSE.md](LICENSE) file for details