Once your app is created, you’ll have to add a Messenger “product”. Without this app, you won’t be able to publish your chatbot on your Facebook page.Ĭlick on this link, choose My Apps in the top menu and then Add New App. Step 3: Create a Messenger Facebook appĬreating an app will help make the connection between SAP Conversational AI and your Facebook page. Thus, if you decide to remove the chatbot, you’ll immediately revert to traditional person-to-person conversations (which means nothing will happen when users enter a message until you manually answer them). (If that’s not the case, hit this link and create one.)Īs I said in the introduction, having a chatbot on a Facebook page will automate private messaging once it’s connected to your page. Let’s assume your company, business, or group already has a page. This means you have to create a Facebook page or have in mind the one you’ll use. Your chatbot will only be available for integration on a Facebook page (not on your personal profile). Once your “joke-telling chatbot” (or whatever you’ve built) is ready, return here! Step 2: Get your Facebook page ready Instead, I warmly invite you to create your account (it’s completely free!) and read our tutorial. Note that once your chatbot is online on Facebook, you’ll be able to modify it, and any changes you make to it will appear in your Messenger chat.įor the purpose of this tutorial, we won’t go into how to create a chatbot. Let’s dive in! Step 1: Get your chatbot readyįirst of all, you’ll need a chatbot (seems legit, right?!). On the SAP Conversational AI platform, we created a step-by-step integration process for our users, so that it only takes a few minutes to reveal your chatbot to your Facebook followers. Instant answers (think about your Answer rate!).In fact, we realized many companies immediately put their bots on Facebook once in production, as it’s clearly the most user-friendly and easiest way for a customer to contact a company.Ī Facebook chatbot has a lot of advantages: We created a very easy step-by-step integration process for our platform users. When it comes to sharing your chatbot, Facebook Messenger is a must. This project was originally inspired by facebook-chat-api.By Paul Pinard How to create a Facebook messenger bot for your page User = fbchat.User(session=session, id=er_id) You can also install directly from source, provided you have pip>=19.0: $ pip install git+ If you don't have pip, this guide can guide you through the process. With that out of the way, you may go to Read The Docs to see the full documentation! Installation $ pip install fbchat If this happens to you, please report it, so that we can fix it as soon as possible! However, there's a catch! Using this library may not comply with Facebook's Terms Of Service!, so be responsible Facebook citizens! We are not responsible if your account gets banned!Īdditionally, the APIs the library is calling is undocumented! In theory, this means that your code could break tomorrow, without the slightest warning! Caveatsįbchat works by imitating what the browser does, and thereby tricking Facebook into thinking it's accessing the website normally. If you want to view the old v1, go here.Īdditionally, you can view the project's progress here. V2 is currently being developed at the master branch and it's highly unstable. only Python 3.5 and upwards).Įssentially, everything you need to make an amazing Facebook bot! Version Warning Type hints, and it has a modern codebase (e.g.Listening for, an reacting to messages and other events in real-time.Creating groups, setting the group emoji, changing nicknames, creating polls, etc.Fetching all messages, threads and images in threads.Sending many types of messages, with files, stickers, mentions, etc.This library differs by using a normal Facebook account instead. This is not an official API, Facebook has that over here for chat bots. Mads Marquart / Original project description below fbchat - Facebook Messenger for PythonĪ powerful and efficient library to interact withįacebook's Messenger, using just your email and password. I have opened for further discussion in issue 613. If there is someone out there willing to take the lead, please get in contact, but even if there is, I can't get in contact with the original author and get the ability to add others as maintainers, see issue 390. This project is officially marked as unmaintained, since my life is somewhere where I just do not have the time and energy to lead this project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |