GithubHelp home page GithubHelp logo

documentation about fbchat HOT 10 CLOSED

fbchat-dev avatar fbchat-dev commented on August 30, 2024
documentation

from fbchat.

Comments (10)

danetrain avatar danetrain commented on August 30, 2024

Please? I would love even some preliminary examples.

from fbchat.

PidgeyL avatar PidgeyL commented on August 30, 2024

@danetrain Most documentation is in the code itself. Please also have a look there.
A short overview of basic functions would be:

import fbchat # (obviously, as you need to import the package)
email=""
password=""
browser="" # This is optional
client = fbchat.Client(email, password, browser)
users = client.getUsers("with this name")
user_id_of_partner = users[0].uid
client.send(user_id_of_partner, "Hi")
client.listen() # Starts a listener (keep in mind, it's blocking/single threaded)

from fbchat.

danetrain avatar danetrain commented on August 30, 2024

I've looked over the code. Am I correct in the conclusion that this doesn't yet have the capability to interact with the settings of a chat thread? i.e. boot someone or add someone?

from fbchat.

PidgeyL avatar PidgeyL commented on August 30, 2024

not yet, no. We (or at least I) currently focus more on the person-to-person chat, and get all the functionalities for that first

from fbchat.

massey101 avatar massey101 commented on August 30, 2024

If we want to help out with the documentation what is the preferred method for questions? Emai to [email protected]? Thanks.

from fbchat.

arslnb avatar arslnb commented on August 30, 2024

@massey101 I guess a pull request would be ideal.

from fbchat.

carpedm20 avatar carpedm20 commented on August 30, 2024

@massey101 yes, feel free to give a pull request to this repo 👍

from fbchat.

OndrejVomacka avatar OndrejVomacka commented on August 30, 2024

Please, give me a simple example of a echo bot for educational purposes. I fight with client.listen(). Thx.

from fbchat.

thekindlyone avatar thekindlyone commented on August 30, 2024

@OndrejVomacka see my PR, added some documentation including example echo bot. #56

from fbchat.

madsmtm avatar madsmtm commented on August 30, 2024

I've added fbchat to ReadTheDocs, and included examples and documentation there ;)

from fbchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.