My server went offline for a day and now facebook has stopped sending requests to my webhook. This is the error message i get:
Your Webhooks subscription for callback URL https://myurl has not been accepting updates for the past 0 minutes. This subscription has been disabled. To reactivate, just make a POST request with the same parameters or visit the Webhooks tab in the app dashboard. Scopri di piĆ¹ about Webhooks.
What post request is he talking about? i went to webhooks tab but doesnt seem to have any effect. Anyone had this problem?
Just send this post request after adding your messenger app access token:
curl -X POST "https://graph.facebook.com/v2.9/me/subscribed_apps?access_token=[MESSENGER_ACCESS_TOKEN]"
Send POST request with your access token and subscribed_fields.
https://graph.facebook.com/v6.0/me/subscribed_apps?access_token=[ACCESS_TOKEN_here]&subscribed_fields=messages,messaging_postbacks,messaging_optins,message_deliveries,message_reads
Also, you can do this manually at the https://developers.facebook.com/
by checking "Subscription Fields"
Related
We've setup our app to receive webhook calls from Instagram when a user visits our conversation on Instagram Direct using ig.me link. We insert referral codes in ig.me links so we know where the user comes from (e.g. https://ig.me/m/testpagename?ref=website).
The problem we're facing is that IG is not calling the webhook for messaging_referral event, although we're subscribed to that event.
When we test the subscription on the dashboard, we do get the data, but in production, nothing comes in. Our app is live and the rest of it is working perfectly.
**Important note: the referral webhook is working perfectly for FB Messenger. It's only IG direct that is not working.
**
We raised this to Meta developer support, but no response!
Any thought please?
I followed this twilio tutorial on how to set up facebook messenger. However this bot only triggers my webhook when I send a message to it on my facebook profile. The webhook I set up isn't called at all when any other facebook user sends a message to my bot.
I've tried getting the other user to follow and like the bot's page and also getting the bot to reply back. It seems only messages from my facebook profile to the bot triggers the call to my webhook. how can I fix this?
You can fix it by submitting your app for review.
Before you do that, it will only work for user accounts that have a role in the app.
https://developers.facebook.com/docs/messenger-platform/submission-process and https://developers.facebook.com/docs/app-review
provide more detailed information on the whole process.
Good Day to all. I am trying out the Xero webhook in a local setup.
Environment:
Node js backend
Using Ngrok for hosting the endpoint publicly
Xero Trial Account
I was able to successfully set up the webhook. My service received 3 unauthorized (401) calls and 1 successful (200) call, which made the ITR status OK.
However, after the ITR success, I tried creating a contact, updating an existing contact and updating an invoice and waited for nearly 10 to 15 minutes and I did not receive any events to the webhook endpoint.
Not sure if I have missed any steps? Any pointers to why I am not receiving the events?
Is there any way I can see if the events that are fired from the Xero side?
Does the webhook work only for Partner apps?
Not sure what I am missing here. Appreciate any help on this.
Cheers!
Can you confirm that your Trial organisation is connected to the app? If not, following the Postman tutorial will ensure that it is connected.
https://developer.xero.com/documentation/tools/postman
So I was integrating my Dialogflow bot into messenger was working fine , bot is replying from messenger , and I shut the dialogflow integration for a while , and then my webhook has been disabled by facebook saying
Your Webhooks subscription for callback URL https://bots.dialogflow.com/facebook/07ab3702-95e7-49c3-ac56-9e9d4c4cb1a6/webhook has not been accepting updates for the past 1 hour. This subscription has been disabled. To reactivate, just make a POST request with the same parameters or visit the Webhooks tab in the app dashboard. Learn More about Webhooks.
I reactivated my dialogflow integration , added the callback url and token, but still it won't reply to the bot's messages in messenger. also in the webhook tab
The "messages" and the "messaging_postback " subscription option isn't there.
eh , you just have to unsubscribe to the page in the messenger - > settings section and subscribe again
got it fixed
I have a case where I need to create a Bot in Slack that my users can use conversational language to get information out of my web app in real time. The scenario goes something like:
User asks the bot something like: #hrbot How many employees are in the Finance department?
Bot send the string to API.AI/ diagflow to resolve into a JSON request
API.AI sends the JSON request to my Web App endpoint via webhook to get the answer
Answer is returned to user's Slack channel
Question:
1. How do I get the auth token from api.ai to send message to slack?
With Dialogflow (formerly API.AI) you provide a webhook (a HTTPS URL where your server is) and Dialogflow will send a HTTPS request to your webhook when requests come to your Dialogflow agent. You can enable the Slack integration in your Dialogflow agent through the web interface and all requests from Slack will be sent to your Dialogflow agent and (if you configure it) to your webhook with NLU information and the original request from Slack.
Information about the request that is sent to your webhook is documented here: dialogflow.com/docs/fulfillment#request if you respond to the request the response will be forwarded to the user that trigger the request. The response format is documented here: dialogflow.com/docs/fulfillment#response