Take the 2-minute tour ×

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?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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...

share|improve this answer

Your Answer


