ANE-Facebook is a native extension for Facebook SDK on iOS and Android. The extension contains the new Facebook SDK for iOS (3.1), but it still uses the old Facebook SDK for Android (the transition to 3.0 is a work in progress). The Actionscript API is based on the new Facebook SDK API.
Sample
function get logEnabled() : Boolean; function set logEnabled( value : Boolean ) : void function init( appID : String, urlSchemeSuffix : String = null ) : void function get isSessionOpen() : Boolean function get accessToken() : String function get expirationTimestamp() : Number function openSessionWithReadPermissions( permissions : Array, callback : Function = null ) : void function openSessionWithPublishPermissions( permissions : Array, callback : Function = null ) : void function openSessionWithPermissions( permissions : Array, callback : Function = null ) : void function reauthorizeSessionWithReadPermissions( permissions : Array, callback : Function = null ) : void function reauthorizeSessionWithPublishPermissions( permissions : Array, callback : Function = null ) : void function closeSessionAndClearTokenInformation() : void function requestWithGraphPath( graphPath : String, parameters : Object = null, httpMethod : String = "GET", callback : Function = null ) : void function dialog( method : String, parameters : Object = null, callback : Function = null, allowNativeUI : Boolean = true ) : void function publishInstall( appId:String ):void
RT @as3gamegears: New: ANE-Facebook (native extension for Facebook SDK on iOS and Android) http://t.co/HuOtK01izQ #as3 #flash #gamedev
I am getting this error.. Pls help
Error: Error #2113: Provided parameter LoaderContext.SecurityDomain is from a disallowed domain.
at flash.external::ExtensionContext$/_createExtensionContext()
at flash.external::ExtensionContext$/createExtensionContext()
at com.AirFacebook::Facebook()[D:WorkSpaceFlashbuilder4.6WolfRunner2srccomAirFacebookFacebook.as:47]
at WolfRunner2/initializeGame()[D:WorkSpaceFlashbuilder4.6WolfRunner2srcWolfRunner2.mxml:54]
at WolfRunner2/application1_applicationCompleteHandler()[D:WorkSpaceFlashbuilder4.6WolfRunner2srcWolfRunner2.mxml:30]
at WolfRunner2/___WolfRunner2_Application1_applicationComplete()[D:WorkSpaceFlashbuilder4.6WolfRunner2srcWolfRunner2.mxml:6]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:dev4.yframeworksprojectsframeworksrcmxcoreUIComponent.as:13152]
at mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:dev4.yframeworksprojectsframeworksrcmxmanagersSystemManager.as:2676]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/displayClassCompleteHandler()[E:dev4.yframeworksprojectsframeworksrcmxpreloadersPreloader.as:582]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at spark.preloaders::SplashScreen/dispatchComplete()[E:dev4.yframeworksprojectsmobilecomponentssrcsparkpreloadersSplashScreen.as:545]
at spark.preloaders::SplashScreen/preloader_initCompleteHandler()[E:dev4.yframeworksprojectsmobilecomponentssrcsparkpreloadersSplashScreen.as:514]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/dispatchAppEndEvent()[E:dev4.yframeworksprojectsframeworksrcmxpreloadersPreloader.as:380]
at mx.preloaders::Preloader/appCreationCompleteHandler()[E:dev4.yframeworksprojectsframeworksrcmxpreloadersPreloader.as:590]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:dev4.yframeworksprojectsframeworksrcmxcoreUIComponent.as:13152]
at mx.core::UIComponent/set initialized()[E:dev4.yframeworksprojectsframeworksrcmxcoreUIComponent.as:1818]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:dev4.yframeworksprojectsframeworksrcmxmanagersLayoutManager.as:842]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:dev4.yframeworksprojectsframeworksrcmxmanagersLayoutManager.as:1180]
Unfortunately I am not able to answer that, but you can get some help from the authors. Have you tried to reach @freshplanet?
That error gets thrown if you try to create an extension context from within your main application. I’m not sure from the call stack whether that is what you’re doing though. The proper way to use the ExtensionContext class is always to package this up into a .ane file and to reference this as an external library when you compile your application.
Hope it helps!