Last active
May 17, 2018 23:39
-
-
Save enginebai/8a5a510033bd67d46db41e92b74db13c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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