auto message send in facebook using python fbchat module
when using this script there will be a error like list index out of range
Change
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
to
revision = 1
There is three kind of script:
- deafult
- session
- session generator
deafult works by just username and password , and it works fine , but when you will try to use it in a remote server it will throw many errors. beacuse of facebook tracks the login location thats why login from unknown location will be blocked.
To bypass this issue we have session handeling
to use it you will have to run the session generator on your computer and it will output a session.json file
then you will have to put the session.json file in your remote server , after that it will run perfectly .
Beacuse you are providing the session of your local computer facebook will think the remote server as your local computer and it will allow to access facebook.