python - Callback URL error when setting up webhook for messenger


I'm trying to follow this tutorial to set a chatbot for messenger. I'm stuck on the webhook setup. I added the page token and verify token to heroku, but when I try to add the heroku URL as the callback URL I get

The URL couldn't be validated. Callback verification failed with the following errors: HTTP Status Code = 403; HTTP Message = FORBIDDEN

1 Answer: 

The problem was the PAGE_ACCESS_TOKEN and VERIFY_TOKEN were not set. The tutorial said to use the command heroku config:add the correct command should be heroku config:set.


More Articles

payment processing - pylons/python

I'm building an application that eventually needs to process cc #s. I'd like to handle it completely in my app, and then hand off the information securely to my payment gateway. Ideally the user would have no interaction with the payment gateway directly.Any thoughts? Is there an easier way?

Magento Payment methods are not showing in checkout

I have a website in magento. iam using payment methods paypal, bank transfer and stripe. using multi store view(3)Except paypal remaning payment methods are not showing in checkout process. i dont know what to do. please help me any one,Thanks,

java - JFrame as a dialog

I want to customize the jframe and that frame should work like a joptionpane. which is relative with parent. can i do like this. if it is possible please any one help me.

Magento: Where does Magento 1.8 store payment method options in the database?

Where does Magento store payment method options in the database?I looked around and did not find it.

dialogflow - how to define 'App' statement in firestore database?

I have to define 'app' inorder to store user details from dialogflow to firestore databaseconst app = new App({request:request, response:response});inorder to use this line of code i need 'App' to be defined in firestore code,for which i have used this line,const App = require('firebase-functions')

localization - Vaadin ConfirmDialog changing the title

I want to change the title "Confirm" of a ConfirmDialog to something in my language. I looked at this, but the code does not make sense to me since the show method in my vaadin addon is a static method and it appears to be impossible to show a dialog returned by the factory.I used this code to wrap

magento - How to get id of last purchase with multiple addresses?

I have a payment method that needs to be redirected to the page it like paypal, I can add a code block on the page of success but need to know if petido that was just completed was paid with my payment method, so I can redirect.Note: several people say it is not possible to redirect payments with mu

How to use API in actions-on-google

I have tried the following javascript code, using a railway API in aog for getting names of trains between 2 stations.train : function(conv,src,dst) {const options={ method:'GET', url : `${src}/dest/${dst}/date/23-09-2018/apikey/<api_key>/`,

Integrate with RBS WorldPay Hosted Payment Page (XML Redirect) using Python

Does anyone have any example code for integrating with RBS WorldPay using Python? Specifically posting the XML order to WorldPay

c# passing cookies as a parameter in sql

I am trying to save cookies on a login page pass it to another page where it will be used as a parameter in sql.saving cookies and redirecting to new page;HttpCookie cookie = new HttpCookie("UserID");cookie["UserID"] = reader["UserID"].ToString();Response.Cookies.Add(cookie);Response.Redirect("Home.