function webhook(event, context, callback) {
  if (event.queryStringParameters) {
    handleHttpGet(event.queryStringParameters, callback)
  } else if (event.body) {
    handleHttpPost(JSON.parse(event.body), callback)
  }
}
/**
 * Messenger webhook entry point which executing in AWS Lambda.
 * @param {object} event Event object (include parameters) sent from Lambda
 * @param {object} context Lambda pass its context
 * @param {funciton} callback Lambda callback function. Call this when finish
 */
Messenger webhook entry point which executing in AWS Lambda.
@param {object} event Event object (include parameters) sent from Lambda
@param {object} context Lambda pass its context
@param {funciton} callback Lambda callback function. Call this when finish
Messenger webhook entry point which executing in AWS Lambda . @param { object } event Event object ( include parameters ) sent from Lambda @param { object } context Lambda pass its context @param { funciton } callback Lambda callback function . Call this when finish
function webhook(event, context, callback) {
  if (event.queryStringParameters) {
    handleHttpGet(event.queryStringParameters, callback)
  } else if (event.body) {
    handleHttpPost(JSON.parse(event.body), callback)
  }
}
function webhook ( event , context , callback ) { if ( event . queryStringParameters ) { handleHttpGet ( event . queryStringParameters , callback ) } else if ( event . body ) { handleHttpPost ( JSON . parse ( event . body ) , callback ) } }
Messenger webhook entry point which executing in AWS Lambda.
Messenger webhook entry point which executing in AWS Lambda .