fb-bot | 簡單 facebook 機器人小範例 | REST library
kandi X-RAY | fb-bot Summary
kandi X-RAY | fb-bot Summary
簡單 facebook 機器人小範例
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fb-bot
fb-bot Key Features
fb-bot Examples and Code Snippets
Community Discussions
Trending Discussions on fb-bot
QUESTION
I created a chatbot with Amazon Lex and integrated it with Facebook Messenger. Responses defined in Lex Console (Response section) are returned to the messenger (see upper right image on picture 1), but responses generated by lambda functions (written in Python) aren't received (see lower right image on picture 1) -- the triple dot icon is displayed for 30 seconds and it disappears.
I integrated the bot with FB using this video and AWS documentation. In Webhooks subscriptions (on FB developers panel) I chose following events: messages, messaging_postbacks, messaging_optins, message_deliveries, message_reads, messaging_payments, message_echoes, standby, messaging_handovers. The app isn't approved by FB yet but the application status is Live.
Picture 1:
Picture 2:
...ANSWER
Answered 2019-Jan-18 at 07:21Solved.
My code used sessionAttributes
from intent_request
and the problem was that when there are no session attributes, the corresponding JSON element is set as empty, i.e. "sessionAttributes" : {}
(as you can see on image 1), but in case of message from Facebook this element is set to None
, i.e. "sessionAttributes" : None
(as you can see on image 2).
This way I got errors like:
QUESTION
I have created, built and published a sample lex bot.
I followed steps in this link to deploy bot on Facebook messenger. ( by creatign facebook page, fb app and adding webhook etc) http://docs.aws.amazon.com/lex/latest/dg/fb-bot-association.html
For creating FB app and page I used my Facebook credentials.
Issue: I am able to interact with bot from facebook messenger ( with my facebook account) and getting desired response from bot
However, when my facebook friend interacts with bot using his facebook account, he doesn't get any response.
Am I missing something here ?
...ANSWER
Answered 2017-Jul-04 at 03:00I think your Facebook App is in development mode, so you need to add your friend as a Tester in the role tab, or let Facebook approve your App.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fb-bot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page