Skip to content

Instantly share code, notes, and snippets.

Created January 9, 2018 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/72d1dede9557e754d289d101528e2753 to your computer and use it in GitHub Desktop.
Save anonymous/72d1dede9557e754d289d101528e2753 to your computer and use it in GitHub Desktop.
Facebookcom Chat Api
********************
Facebook.com Chat Api ->>->>->>
********************
http://shurll.com/bz4il
(Copy & Paste link)
********************
README.md Unofficial Facebook Chat API Facebook now has an official API for chat bots here. Quick Start Guide. mesibo is. shareimprove this answer answered Apr 13 '16 at 7:44 Antoine Pietri 354215 add a comment up vote 1 down vote I guess Facebook will never give access to xmpp after April 30th 2015 because they have blocked friends access from there sdk and through xmpp you can find roasters to access friends. Tools 12.13.2017 Twist This is the official Twist API. First check that you can login to Facebook using the website. Directories & Listings API Directory SDK Directory Sample Source Code Mashups and Apps Libraries Frameworks Resources About ProgrammableWeb Advertise FAQ How To Get Your News Covered On ProgrammableWeb Contributed Content Guidelines Get Paid to Write for ProgrammableWeb Contact Us Business & Legal Site Terms of Service Privacy Policy Subscribe Rss Twitter Facebook Google+ LinkedIn . Example const fs = require("fs"); const login = require("facebook-chat-api"); var credentials = {email : " FBEMAIL " , password : " FBPASSWORD " }; login(credentials, (err, api) => { if(err) return console.error(err); fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState())); }); Listening to a chat api.listen(callback) Listen watches for messages sent in a chat. This is not Browders first endeavor with his worlds first robot lawyer, last year the robot lawyer made a name for itself by successfully contesting 160,000 parking tickets in London and New York. 1.76M followers 1M likes . You will need a readmailbox permission. Doist is a remote-first. See below for projects using this API. Open in Desktop Download ZIP Find file Branch: master Switch branches/tags Branches Tags master Nothing to show Nothing to show New pull request Latest commit 168cde3 Aug 22, 2016 cyberhck Update README.md Permalink Failed to load latest commit information. Do api.setOptions({logLevel:"silent"}); . From the root >directory, run npm test. We do also share that information with third parties for advertising & analytics. src getThreadInfoGraphQL.js:formatExtensibleAttachment() fixes (#562) Jan 4, 2018 test Support new API through graphql. Sticker: set a field sticker to the desired sticker ID. News Conference TNW NYC Index TQ Deals Answers TNW X News Conference New York Index TQ Deals Answers TNW X Contact Jobs Advertise Team About Latest Insights Distract Full stack Investing 2.0 Have a cookie TNW uses cookies to personalize content and ads to make our site easier for you to use. You signed in with another tab or window. Latest commit b70b3d3 Jan 4, 2018 jrwiebe committed with Schmavery getThreadInfoGraphQL.js:formatExtensibleAttachment() fixes (#562) … * Made several attachment field values conditionally null if specified element does not exist. By default this won't receive events (joining/leaving a chat, title change etc) but it can be activated with api.setOptions({listenEvents: true}). For how to handle login approvals, read our docs on login. Install If you just want to use facebook-chat-api, you should use this command: npm install facebook-chat-api It will download facebook-chat-api from NPM repositories Bleeding edge If you want to use bleeding edge (directly from github) to test new features or submit bug report, this is the command for you: npm install Schmavery/facebook-chat-api Example Usage const login = require("facebook-chat-api"); // Create simple echo bot login({email : " FBEMAIL " , password : " FBPASSWORD " }, (err, api) => { if(err) return console.error(err); api.listen((err, message) => { api.sendMessage(message.body, message.threadID); }); }); Result: Documentation login api.addUserToGroup api.changeArchivedStatus api.changeBlockedStatus api.changeGroupImage api.changeNickname api.changeThreadColor api.changeThreadEmoji api.createPoll api.deleteMessage api.deleteThread api.forwardAttachment api.getAppState api.getCurrentUserID api.getFriendsList api.getThreadHistory api.getThreadInfo api.getThreadList api.getThreadPictures api.getUserID api.getUserInfo api.handleMessageRequest api.listen api.logout api.markAsRead api.muteThread api.removeUserFromGroup api.resolvePhotoUrl api.searchForThread api.sendMessage api.sendTypingIndicator api.setMessageReaction api.setOptions api.setTitle Main Functionality Sending a message api.sendMessage(message, threadID[, callback]) Various types of message can be sent: Regular: set field body to the desired message as a string. Facebook now has an official API for chat bots here. If login approvals are enabled, you might be logging in incorrectly. If login approvals are enabled, you might be logging in incorrectly. Pretty cool! shareimprove this answer answered Nov 23 '15 at 10:47 Gismo Ranas 1,87311418 add a comment up vote 3 down vote Since a few months, there's a pretty complete reverse of the MQTT protocol used by the messenger app implemented with two Instant Messaging libraries: bitlbee-facebook purple-facebook Both share the same codebase and were essentially implemented by the same person, so you could either reuse the codebase or use bitlbee-facebook and do your thing on top of IRC. Bleeding edge. Main Functionality. Note that a message can only be a regular message (which can be empty) and optionally one of the following: a sticker, an attachment or a url. npminstallfacebook-chat-api. Projects using this API. We like to use new language features. FAQS. Emoji: set field emoji to the desired emoji as a string and set field emojiSize with size of the emoji (small, medium, large) . Jul 16, 2017 .gitignore Work to update tests Sep 12, 2015 CHANGELOG.md Small fixes Nov 5, 2017 DOCS.md Small fixes Nov 5, 2017 LICENSE-MIT Ready for npm Feb 26, 2015 README.md Update README.md Jul 21, 2017 index.js Login approvals fix (#548) Oct 31, 2017 package.json Increase version to 1.4.0 for publish Apr 28, 2017 utils.js Small fixes Nov 5, 2017 . api.listen(callback) 5a02188284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment