I have connected an Azure Web Bot to a facebook channel. The connection was working, and the bot responded as expected. But when I update my Bot Facebook still uses the old Version. I've tested in "Test in Web Chat" and that is using the new Version. Only Facebook still uses the old one. I'm sure I'm only missing some sort of a republish, but I've no idee where to search for that.
Okay, I found this solution:
The Bot stays in a state where the Communication was started. So to get it with the new Bot you have to post a message
" /deleteprofile" to your bot (be aware of the leading space)
Then the channel communicates to the new bot version.
Related
I'm having trouble proactively sending messages. I have a bot successfully sent up and I hear all messages sent to me and can respond. I'm unable to get any event when the app is installed. I've been installing the app using the embedded code link that looks like https://teams.microsoft.com/l/chat/0/0?users=**:***************************. All I want is some event send to me on installation so I can then pull all user ids for the team that installed the app. I am trying to use the REST api since I am working in laravel.
The link you mentioned is the deep link that is used to navigate to your bot on click on the link where you can chat with it.
You can use the Manifest file to install the app.
You can use the app setup policy to install your bot to all the users in the organization :-Link.
or you can use Microsoft Graph API which is in beta version to install an all to the users:- Link
Once the bot is installed to the user, the Conversation Update event will be triggered, where you can capture and store the User's Teams Unique ID which you can use to send Proactive messages.
you can also refer to this Link.
Thanks.
I got a sample echo bot hosted on Azure Web App Bot, and link up with facebook messenger.
Every configuration setup correctly, when I type message in FB Messenger, some of my text were actually not receiving in /api/messages endpoint.
I used ngrok on Azure bot web app to replace it api endpoint with my local url and found out that some messages did actually fail to delivered to the endpoint.
I had setup my web app to be always on mode, and server location put in Central US. But it still has this performance issue.
Because our bot starting migrate to V4, and found out that the suggested action card always not responding after user click in Messenger (sometime it's works), it's normally reply with local bot emulator.
Any ways can improve this or minimize user lost their action in conversation due to the dropping message?
OK finally found out that delay/random reply caused was single FB page subscribed to multiple FB app.
Just try to make sure you only have a single page subscribe to a single FB app , else it will randomly send the webhook message to one of your subscribed app and cause the performance issue.
I have Facebook page for company and for contact on messenger and on page we are using FB application that is linked to Bot microsoft bot framework.
That same FB application is public and available, but Bot is not responding to anyone except to application Admin or Developer.
You still need to request the Send API (Pages Messaging) to be approved for your bot. You can do this via the Facebook App dashboard- Products- settings, and a tester will check the questions and answers you provide.
This is a common problem, and one that I face also. Since you assume that setting your bot outside of development mode and available to the public it will automatically be live.
I am trying to build a chatbot using Facebook developer platform. I want my bot to respond differently under different scenarios. So, basically I have my standard bot implementation on Heroku server. I want to bring in api.ai into my bot so as to leverage the kind of functionalities api.ai offers.
To bring in api.ai, I need to configure webhook in my Facebook app. As my Facebook app is already subscribed to Heroku, I don't see an option to add another webhook. Is there a way to subscribe my app on Facebook to multiple webhooks?
If not, is there any way to integrate api.ai using api calls from my heroku server?
Thanks in advance!
It's likely you'd probably just forward them along to the next endpoint. Have your server be the frontend, and forward requests from your server to the next webhook if needed.
I use smack for chat API. Before all worked ok. But now I have issue. On try login to chat server get error: " Your account is temporarily unavailable. Regain access by logging into your account from a web browser".
I try different applications: FriendCaster Chat, Go!Chat for Facebook
. All also do not worked with my account. Only native application Chat facebook worked normal. But native application use MQTT server, not chat api.
With another account my application worked ok. Issue with my account. But what?
I think this is facebook bug and we nothing can todo.