Skip to content

Instantly share code, notes, and snippets.

@enginebai

enginebai/fb_webhook.py

Last active May 17, 2018
Embed
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