Inviting facebook friends in Air app for iOS

I'm working currently on an Air app for iOS and i have some hard time trying to make "invite friends" button. I'm using facebook-actionscript-api 1.8.1 with air 3.3 and I have something like this in my code:

invite_button.addEventListener(MouseEvent.CLICK, facebookInvite);

private function facebookInvite(e:MouseEvent):void
    var dat:Object = new Object();
    dat.message = 'I invite you to this awesome app!';
    dat.title   = 'Super Extra Max Facebook App';
    dat.filters = ['app_non_users'];

    Facebook.ui('apprequest', dat);

Button displays only if user is logged in.

But when I tried to tap the button I got debugging error:

ExternalInterface not available on the device.

Well, I guess the meaning of this is obvious - it's trying to use JS.

How can I show friends select dialog and send invitations from within an app? I thought I can write some StageWebView container and display the dialog in it but isn't there some other, probably simpler way?


Ok, so I finally found this thread on API page in issues a while ago:

5th comment links to the thing I used. It appears it is just what I needed. Next time I'm just going to use native component...

Need Your Help

XNA Game Studio 4.0 in VS2010 Express Installation Issues

visual-studio-2010 xna

I am try to get the 4.0 up and running in VS 2010, I downloaded, I installed, I launched VS2010 following the instructions at this link: I click