Add logEvent function. takes an event name and logs it to facebook