 	throw new Error('facebook module config missing')
 
 fb = require 'fb'
+db = require 'db'
 
 fb.options
 	appId: config.appId

					error: res.error
					module: 'facebook'
			else
				query.onSuccess
					title: res.name
					description: res.description
					source: ''
					date: new Date(res.start_time).getTime()
					location: ''

# Import and url
# @param [object] query

# @option query [function] onError
exports.handle = (query) ->
	eventId = _getEventId(query.url)
	if canHandle(query.url) and eventId 
		query.eventId = eventId
		_getEvent(query)
		return true
	else
		return false

# if exports.canHandle 'https://www.facebook.com/events/344493149083407/'
# 	exports.handle 
