Skip to content

Instantly share code, notes, and snippets.



Last active May 17, 2018
What would you like to do?
@app.route(API_ROOT + FB_WEBHOOK, methods=["GET"])
def fb_webhook():
verification_code = 'I_AM_VERIFICIATION_CODE'
verify_token = request.args.get('hub.verify_token')
if verification_code == verify_token:
return request.args.get('hub.challenge')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment