webhook 2017-10-03T11:44:25+00:00

app.get(‘/webhook’, function(req, res) {
if (req.query[‘hub.mode’] === ‘subscribe’ &&
req.query[‘hub.verify_token’] === ) {
console.log(«Validating webhook»);
res.status(200).send(req.query[‘hub.challenge’]);
} else {
console.error(«Failed validation. Make sure the validation tokens match.»);
res.sendStatus(403);
}
});

Mine nettkurs

BLOGGKURSET: Lær alt om blogging
bloggkurset
mockupss-facebook

FACEBOOKKURSET: Lær å bruke Facebook

Kategorier

hits