Converts a (NodeJS) facebook-chat-api appstate into a (Python) fbchat session. See the examples/ directory for how this can be used to create an fbchat bot with BotCore.
Name of the file whose location contains the appstate data to be converted
Callback to use after conversion completed, passed the converted session
A variant of convert
that directly outputs the converted session to a file.
Location of appstate to be converted
Where to place the converted session
Callback called after conversion
Dumps the current login into a specified file.
Name of the file specifying where to store the login
Callback to use after writing the file
Exposes the underlying memjs memcache instance, which can be used for temporary storage. Use wisely, or you may break your BotCore installation!
NOTE: if you call this before logging in with login, it will return nothing; the memcache is not initialized until you log in.
The underlying BotCore memjs instance
Reads a new login into memory from a file.
Name of the file specifying where the imported login is stored
Callback to use after reading the login
Call this to initialize the login module and log into Facebook using facebook-chat-api. See examples/ for example usage.
called after login completed (successfully or unsuccessfully)
Logs out of Facebook.
Generated using TypeDoc
Login API
Provides various utilities for managing the login process, including login/logout and import/export of appstate files.
Encapsulates the login by caching the appstate in memory.