facebook-chat-api | Unofficial Facebook Chat API for Nodejs | REST library

 by   Schmavery JavaScript Version: 1.4.0 License: MIT

kandi X-RAY | facebook-chat-api Summary

kandi X-RAY | facebook-chat-api Summary

facebook-chat-api is a JavaScript library typically used in Telecommunications, Media, Telecom, Web Services, REST, Nodejs, Discord applications. facebook-chat-api has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i pair-facebook-chat-api' or download it from GitHub, npm.

Facebook now has an official API for chat bots here. This API is the only way to automate chat functionalities on a user account. We do this by emulating the browser. This means doing the exact same GET/POST requests and tricking Facebook into thinking we're accessing the website normally. Because we're doing it this way, this API won't work with an auth token but requires the credentials of a Facebook account. Disclaimer: We are not responsible if your account gets banned for spammy activities such as sending lots of messages to people you don't know, sending messages very quickly, sending spammy looking URLs, logging in and out very quickly... Be responsible Facebook citizens. See below for projects using this API. See the full changelog for release details.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              facebook-chat-api has a medium active ecosystem.
              It has 1895 star(s) with 577 fork(s). There are 95 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 135 open issues and 500 have been closed. On average issues are closed in 168 days. There are 18 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of facebook-chat-api is 1.4.0

            kandi-Quality Quality

              facebook-chat-api has 0 bugs and 0 code smells.

            kandi-Security Security

              facebook-chat-api has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              facebook-chat-api code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              facebook-chat-api is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              facebook-chat-api releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed facebook-chat-api and discovered the below as its top functions. This is intended to give you an instant insight into facebook-chat-api implemented functionality, and help decide if they suit your requirements.
            • Listen on the server
            • Formats the attachment for a single attachment .
            • handle the delta message
            • Formats the messages to be posted to the console .
            • generates the login dialog
            • Listen for MQTT .
            • Formats the attachment of attachment to a message .
            • Parse and return a function which parses login and logs out of logged in .
            • Format an attachment .
            • Login function
            Get all kandi verified functions for this library.

            facebook-chat-api Key Features

            No Key Features are available at this moment for facebook-chat-api.

            facebook-chat-api Examples and Code Snippets

            No Code Snippets are available at this moment for facebook-chat-api.

            Community Discussions

            QUESTION

            nodejs - pkg Error! Not more than one entry file/directory is expected
            Asked 2021-Apr-13 at 14:28

            I have a simple cli node script that I want to pack using pkg. I've tried with the following command

            ...

            ANSWER

            Answered 2021-Apr-13 at 14:28

            Seems like you're missing an s : use --targets instead of --target

            pkg can generate executables for several target machines at a time. You can specify a comma-separated list of targets via --targets

            https://www.npmjs.com/package/pkg

            Source https://stackoverflow.com/questions/67076767

            QUESTION

            Unable to access user info object property - facebook chat api
            Asked 2021-Feb-15 at 12:46

            I'm using Facebook chat api to create a simple cli script that will reply to messages that are sent to my facebook account. I'm trying to assign and get the user name and my name to use them inside the reply but they are always undefined. I think that the object property aren't assigned correctly. Is there a fix for this?

            ...

            ANSWER

            Answered 2021-Feb-15 at 10:36

            I think the problem here is that api.getUserInfo is asynchronous. So you would need to nest them to get it to work.

            Or you can try this, since getUSerInfo allows you to add an array of user ids to get the data for:

            Source https://stackoverflow.com/questions/66199411

            QUESTION

            dotenv file not readed in node cli script
            Asked 2021-Feb-14 at 14:48

            I've created a .env file inside my node cli script folder. I'm trying to load the variables I've defined inside it by using the process.env.MY_VARIABLE but I've noticed that they are undefined.

            at the moment this is the code inside the index.js file of my cli script

            ...

            ANSWER

            Answered 2021-Feb-14 at 14:48

            How are you loading the .env file ? This mapping of the .env to the process.env doesn't happen automatically. You can have a look on https://www.npmjs.com/package/dotenv for loading an .env file to you process.env.

            Another way of doing that is having FB_EMAIL and FB_PWD in your environment from where you run that cli tool. You could try on your terminal export FB_EMAIL=****

            Source https://stackoverflow.com/questions/66196490

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install facebook-chat-api

            If you just want to use facebook-chat-api, you should use this command:. It will download facebook-chat-api from NPM repositories.

            Support

            loginapi.addUserToGroupapi.changeAdminStatusapi.changeArchivedStatusapi.changeBlockedStatusapi.changeGroupImageapi.changeNicknameapi.changeThreadColorapi.changeThreadEmojiapi.createPollapi.deleteMessageapi.deleteThreadapi.forwardAttachmentapi.getAppStateapi.getCurrentUserIDapi.getFriendsListapi.getThreadHistoryapi.getThreadInfoapi.getThreadListapi.getThreadPicturesapi.getUserIDapi.getUserInfoapi.handleMessageRequestapi.listenapi.listenMqttapi.logoutapi.markAsReadapi.markAsReadAllapi.muteThreadapi.removeUserFromGroupapi.resolvePhotoUrlapi.searchForThreadapi.sendMessageapi.sendTypingIndicatorapi.setMessageReactionapi.setOptionsapi.setTitleapi.unsendMessage
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Schmavery/facebook-chat-api.git

          • CLI

            gh repo clone Schmavery/facebook-chat-api

          • sshUrl

            git@github.com:Schmavery/facebook-chat-api.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link