add logEvent method to facebookConnectPlugin.js