Library for content creation automation on Facebook
Project description
Python Easy Facebook API
Make requests to the facebook graph api easily.
Docs
Instantiate the class
from python_easy_facebook_apy import FbApi
# We recommend seriously use a library like python_dotenv to store the facebook access token and the page id.
# To learn how to get access_token and page_id read "Get Access Token and Page ID" below.
access_token = "<your access token>"
page_id = "<your page id>"
api = FbApi(
access_token=access_token
page_id=page_id
)
# ...
To add a Text Post
api.TextPost(
content="<your post content>"
)
To add a Photo Post
api.PhotoPost(
# You can use any framework or library like Flask or Django to store your image and upload to facebook
# Example:
# image_url="https://example.com/image.jpg"
image_url="<your image url>"
)
To add a Text with Photo Post
api.TextWithPhotoPost(
content="<your post content>"
image_url="<your image url>"
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python_easy_facebook_api-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 508501cccea10c6f176b9a9b7e0bdd5cd92e82972bb7b7ef0b1000871c3b54bd |
|
MD5 | ac3e7f65c193d93b17a8c6e952ff8b29 |
|
BLAKE2b-256 | 163b0e366018b52603458f3c03a7ba29a042d73467d984937e6c85e6f7282456 |
Close
Hashes for python_easy_facebook_api-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc11d7ddd94af6161c2fb4bb1199d9320cb4669e44d09100e2892c1240efbd6 |
|
MD5 | 4624596780ee430470c5c3a028c5967e |
|
BLAKE2b-256 | 7d11eaffe4fcb99399a43453bca56ab1ceaeaf939c5f0887e0aa2defa948604e |