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?