Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to register in facebook webhook #52

Open
rcchit opened this issue Feb 5, 2017 · 16 comments
Open

not able to register in facebook webhook #52

rcchit opened this issue Feb 5, 2017 · 16 comments

Comments

@rcchit
Copy link

rcchit commented Feb 5, 2017

Trying to register facebook webhook and keep getting error listed below .BTW I changed in index.js from FB_PAGE_ACCESS_TOKEN to PAGE_ACCESS_TOKEN

"The URL couldn't be validated. Response does not match challenge, expected value="492837124", received="hello world i am a..."

I created these config on heroku
PAGE_ACCESS_TOKEN
VERIFY_TOKEN

@kostimarko
Copy link

kostimarko commented Feb 8, 2017

@rcchit what is the URL you are using?

@Komsomol
Copy link

Komsomol commented Feb 9, 2017

I had the same issue. You need to paste in the url with /webhook.

https://this-app-68903.herokuapp.com/webhook/

Since this is the sub-dir in the code for FB verification

app.get('/webhook/', function (req, res) {

@kostimarko
Copy link

@Komsomol I had the same issue. After adding /webhook/ everything worked.

@codename-47
Copy link

I am getting the below error, when trying to setup the webhook. How do we add configurations to heroku? I do not have any prior knowledge in cloud deployment. Please help.

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

@sunnyMiglani
Copy link

I get a similar error
Adding /webhook/ doesn't really help either

I've tried even changing the Procfile to a different version (mentioned in another issue) and it fails still

@kostimarko
Copy link

@sunnyMiglani are you getting a 503 error?

@codename-47
Copy link

@sunnyMiglani We need to provide start script to "start": "node index.js" in package.json file. Hope that works.
dfbcaf46-f47c-11e6-8965-f59e44954f3b

@sunnyMiglani
Copy link

@kostimarko I'm getting a 502 "bad gateway" error

@codename-47 I've tried adding that, still receive the same error

@kostimarko
Copy link

@sunnyMiglani have you tried running it with out a heroku config?

@dchege711
Copy link

@codename-47 on adding configurations

Generate a token from this site and save the token somewhere:
screen shot 2017-05-31 at 17 55 56

To add configurations to heroku, type this command into the terminal while in your working directory.
heroku config:set FB_PAGE_ACCESS_TOKEN=fake-access-token-dhsa09uji4mlkasdfsd

You can then access the token in your index.js file as follows:
screen shot 2017-05-31 at 17 51 24

@dinshawr
Copy link

I am facing given problem

The URL couldn't be validated. Response does not match challenge, expected value="182436379", received="Invalid verify token"

any solution for this https://github.com/netguru/messenger-ruby/issues/54

@F-Makhokha
Copy link

I am facing similar problem here is my issue,

The URL couldn't be validated. Response does not match challenge, expected value="1060150785", received=""1060150785""

@abhilashrao
Copy link

@F-Makhokha check for index.js and add https://YOUR-APP.herokuapp.com/webhook/
your token would be: my_voice_is_my_password_verify_me as mentioned in index.js

@nicocouz
Copy link

nicocouz commented Feb 5, 2019

Hello, any updates about that issue ? Thanks in advance

@Poseidon4006
Copy link

Deploy the Heroku app first using git and then you should register the facebook webhook.

@chitalian
Copy link

Had the same issue, but turns out I was using the wrong URL. Use the URL that comes out in the build logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests