facebook-chatbot

POST: 500 Internal Server Error from Messenger Bot in laravel

这一生的挚爱 提交于 2020-06-29 04:08:20
问题 I setup my Webhok by Ngrok URL for my Facebook page, and I applied all of the requirements for the Messenger Platform, but when I send the messages to my Facebook page I encounter the following error: POST /Facebook_Messenger_Token 500 Internal Server Error and in routs file in Laravel I use Get and Post functions as follow: Route::get('Facebook_Messenger_Token', 'MessengerController@index'); Route::post('Facebook_Messenger_Token', 'MessengerController@index'); When I send the messages I get

POST: 500 Internal Server Error from Messenger Bot in laravel

梦想与她 提交于 2020-06-29 04:08:12
问题 I setup my Webhok by Ngrok URL for my Facebook page, and I applied all of the requirements for the Messenger Platform, but when I send the messages to my Facebook page I encounter the following error: POST /Facebook_Messenger_Token 500 Internal Server Error and in routs file in Laravel I use Get and Post functions as follow: Route::get('Facebook_Messenger_Token', 'MessengerController@index'); Route::post('Facebook_Messenger_Token', 'MessengerController@index'); When I send the messages I get

Hyperlink in response card button in Amazon Lex

这一生的挚爱 提交于 2020-01-24 10:14:31
问题 I am trying to make a response card in amazon lex to give out a response card that has a button that leads to another website. Below is the code that I have used in aws lambda python. I have published the chatbot on facebook messenger. But whenever I select the button in fb messenger, the link in the button does not seem to bring me to the website. Is there any way to make the response card button turn into hyperlink button? def location(intent_request): session_attributes = intent_request[

Facebook Messenger Chatbot for personal fan page

╄→гoц情女王★ 提交于 2020-01-11 10:55:28
问题 I created a chatbot using Dialogflow, hooked it up as a facebook messenger chatbot for my personal fan page (A fan page for my app). I passed through the first review process and it got approved. The next step is to "verify my business". I am not a business, I am just an individual developer, and I wanna allow my facebook fan page to have a chatbot that can interact with the users. I don't have a "bill" that shows my business cause I don't have on. How do I go about that, how to enable the

Invalid HTML, CSS, or JavaScript error in Google Tag Manager with FB Bot

爷,独闯天下 提交于 2020-01-06 05:38:10
问题 I'm trying to put the following Facebook bot code into Google Tag Manager but am getting the "Invalid HTML, CSS, or JavaScript found in template." error. Any idea why? <!-- Load Facebook SDK for JavaScript --> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js#xfbml=1&version=v2.12&autoLogAppEvents=1'; fjs

How to get images/attachments sent by user from Facebook messenger bot through Dialog Flow (API.AI)?

偶尔善良 提交于 2020-01-04 05:41:08
问题 I have Chabot powered by Dialog Flow (API.AI) which requires user to send images. I know that when the user clicks on Get Started button in messenger (while starting a conversation with the bot) an intent in Dialog Flow (API.AI) with WELCOME/FACEBOOK_WELCOME event will get triggered. When the user sends simple text message an intent in Dialog Flow (API.AI) with that text in User Says will get triggered. My doubt is there any intent in Dialog Flow (API.AI) that gets triggered when a user sends

Facebook Messenger Extension Error: 2071010

断了今生、忘了曾经 提交于 2020-01-03 02:42:06
问题 I am developing a chatbot for messenger platform using nodejs deployed on heroku. I am trying to get the user id in the webview. I have set the messenger extension field to true, whitelisted my domain, using latest updated version android app and also since now webview support the web browser, I am also viewing it in safari browser. The messenger sdk is loading perfectly. I the check whether browser is supported or not which I get as result->true. Still I am facing problem getting the user id

Facebook Messenger bot not sending messages in order

与世无争的帅哥 提交于 2019-12-30 04:05:12
问题 I'm playing around with building a simple Facebook Messenger chatbot and I'm having trouble sending messages in sequence. In the example above, it should have printed "Hello!", "1", "2", "3" in order. I'm currently following the Facebook docs found here to implement this simple text message function. I've included my Express Node.JS server code below: Defining the sendTextMessage() function: var request = require("request"); function sendTextMessage(user, text) { messageData = { text: text };

MessengerExtensions : how to send a message by messenger to users?

▼魔方 西西 提交于 2019-12-25 12:48:15
问题 I use webviews with my messenger chatbot. On my webapp's view, I used MessengerExtensions.requestCloseBrowser() to close the webview on iOS and Android. It works perfectly but, i have no idea how i could give feedback to my user by send a message when the webview is closed Could you help me please ? Thx. 回答1: You can do a server round trip. closing webview has a success callback. You can make an api call to one of your webservice. You pass the page scoped user id to this service. Then once