This app relies on bs4 and requests make sure to install it before proceding forward!
pip install -r requirements.txt
This app readily uses cookies meaning once you login your cookies are saved and used until it expires. To login first create an object for FB class
x = FB()
x.HandleSession("username","password")
Now it will tell you if you were successfully able to login or failed the attempt.
This will return you own profile name
print(x.get_own_name())
This will return a dictionary of your pages name and its coresponding username.
print(x.getPagesList())
{'Test': 'Test-107071288636127'}
This username Test-107071288636127
is essential to use post function of the script.
x.self_post("CAPTION GOES HERE")
x.self_image_post("Caption goes here","images.png")
Reemember we obatined our page username now it is required here. Function call is same as for own profile just provide for_ vale as your page username
x.self_post("CAPTION GOES HERE",for_="Test-107071288636127")
x.self_image_post("CAPTION GOES HERE","images.png",for_="Test-107071288636127")