 import com.freshplanet.ane.AirFacebook.appevents.FBEvent;
 import com.freshplanet.ane.AirFacebook.share.FBAppInviteContent;
 import com.freshplanet.ane.AirFacebook.share.FBShareLinkContent;
+
+import flash.desktop.InvokeEventReason;
 
 import flash.desktop.NativeApplication;
 import flash.events.Event;


    private function onInvoke(event:InvokeEvent):void
    {
        log("FACEBOOK about to call handleOpenURL on args: [" + event.arguments.join(",") + "] with reason: " + event.reason);

        if (Capabilities.manufacturer.indexOf("iOS") != -1) {
            if (event.arguments != null && event.arguments.length > 0) {
                var url:String = event.arguments[0] as String;
                var sourceApplication:String = event.arguments[1] as String;
                var annotation:String = event.arguments[2] as String;

                _context.call("handleOpenURL", url, sourceApplication, annotation);
            }
        }

        }
    }

    /**
     * Do not use this method outside this class. It may be removed anytime!
     * 
     * @param message
     */
    public function log(message:String):void
    {
        if (Facebook.logEnabled) {
            as3Log(message, "AS3");
