Adobe AIR on Mobile with Facebook

I am developing an Adobe AIR app for mobile devices to work with Facebook. I am using the Adobe ActionScript API for Facebook Platform
I am accessing the Facebook from Actionsctipt code as follows:
FacebookMobile.init("my-numeric-app-id", initHandler);
function initHandler(success:Object, fail:Object):void
    // inside login handler
The success object is null and and the fail object has the message "An active access token must be used to query information about the current user."
What is wrong here or what else is needed to be done to mae it work?

I've made a little headway with this. Within your initHandler just make a call to login:
FacebookMobile.login(loginCallback, this.stage, [], webview);
webview is a StageWebView instance with the viewPort defined. If I left it null, or didn't set the viewPort nothing happens...
var webview:StageWebView = new StageWebView();
webview.viewPort = new Rectangle(0,0,400,400);
I'm now getting a login screen.

Similar Messages

  • Any idea when adobe air for mobiles is coming out?

    Hi,
    Any idea when adobe air for mobiles is coming out and on what phones will it be available?
    Thanks,
    Gaurav

    Sorry, only Apple will know that, Rob; and even if we knew, nobody would be allowed to post it here, before the raw support has been released.
    Keep checking this link.  Apple - Aperture - Technical Specifications - RAW Support
    I'm waiting for the Aperture update so I can start playing with my pics.
    I can understand, that you are eager to try your new camera - try Adobe's DNG converter, while you are waiting - http://www.adobe.com/support/downloads/product.jsp?product=106&platform=Macintos h
    or shoot rwa&jpeg and set the Import panel to import raw&jpeg, with the jpeg as original. YOu can change that later, when the raw support has been released, and use the raw files you imported.
    Regards
    Léonie

  • Adobe AIR desktop app with an embedded runtime

    Hi,
    Does an Adobe AIR desktop app with an embedded runtime (standalone/portable)  that got published on Windows work on a Mac too?
    Thanks

    No, you need to compile a "bundle" with ADT on each platform. On Windows it creates a directory with an .exe and the AIR runtime. On OS X it creates a .app file.

  • Adobe AIR for Mobile Devices?

    Hi,
    I was just recently asked whether there is a project for developing Adobe AIR for mobile devices?
    This would be really exciting as you could develop your own projects for mobile devices as well as desktop computers...
    Any ideas?

    It is possible. The thing is Apple won't let developers put their AIR apps into Apple's iTunes store.

  • Continue with Adobe AIR or redevelop with HTML5?

    Hi, folks.
    I've got 6 apps which are sitting nicely on the Apple AppStore.  They've been on for a year or so now, and I've not done any development in that time.  As technology has advanced quite rapidly, I'm now looking at updating these both content wise and possibly technology wise.  The reason being I want them to be as cross-platform as possible!
    The question I need answering is:
    Do I just update my apps and recompile with Adobe AIR?  Or do I redevelop with HTML5?
    Note that my apps don't use any device capabilities.
    I guess I want to know if AIR has a long future in mobile/tablet development, or if I should just switch technologies now?
    Is Adobe Edge the way forward?
    Thanks for your opinions and guidance on this.  I've been out of the loop for a while and need some guidance.

    We put a pretty heavy investment into Air while developing a number of very intensive iOS/Android apps.  At the time, it appeared to be the best option available.  Currently, it is obvious that Adobe is shifting much of its effort toward HTML 5, and through their purchase of PhoneGap, they are offering an alternative to Air that is gaining capabilities at a swift pace. 
    I believe at this time that Air is still the best solution for us in building cross-platform mobile applications.  However, for any applications that can fit within the ever growing realm of PhoneGap, I believe it will be the better, and more supported, solution in the future.

  • Adobe Air 3 conflict with 10.7.2

    I cannot open YNAB and after several tries I get a msg to install the latest Adobe Air. I tried installing it (which is Adobe Air 3) and nothing happens....
    Any advice?

    I can't speak to the specific problem with YNAB, but since upgrading my MacBook Pro (2010) to 10.7.2, I too have had problems with installing Adobe AIR 3. If you have a MacBook Pro or other Mac with automatic graphics switching, disabling this in System Prefs -> Energy Saver seems to allow Adobe AIR 3 to install. (I too found this tip on the Adobe forums, and I have confirmed that it works.)
    Why this should upset AIR is anyone's guess. But then, Adobe creates nasty bits of software that seem to be completely unable to play nicely; they aren't content to use the standard Mac OS X Installer, they dump files and folders in inappropriate places, they have un-Mac-like UIs which make them unnecessarily difficult to start using, and they cause all sorts of system problems. On one occasion I installed Reader in OS X 10.5 because of a PDF with interactive forms. I spent the whole afternoon restoring my Mac from a TM backup as a result of the constant kernel panics which ensued. I almost wish Adobe didn't make software for the Mac.

  • Adobe AIR available mobile platform

    Hello All,
    I am interested in knowing what mobile platforms will have support for Adobe AIR - either directly from Adobe or by third party.
    I understand Android currently supports it what about Windows Mobile 7, Qualcomm Brew MP , Mediatek etc
    Regards
    Srini

    See response here: http://forums.adobe.com/thread/716414?tstart=0
    -Rob

  • Adobe AIR for mobile expectations and misconceptions?

    Hello, I am somewhat confused by the content published by Adobe which claims that AIR for Android or iOS publishing creates a fully native app.
    For example, in this Adobe Developer Connection article (http://www.adobe.com/devnet/logged_in/abansod_iphone.html) written in May 2011, the following claims are made:
    "Since we are able to compile ActionScript to ARM ahead of time, the application gets all the performance benefits that the JIT would offer and the license compliance of not requiring a runtime in the final application."
    "When you build your application for iOS, there is no interpreted code and no runtime in your final binary. Your application is truly a native iOS app."
    After reading a large amount of information like this from Adobe and other sources, I went ahead and bought an Android phone. After actually getting the .APK file published from Flash Pro CS 5.5 onto the phone and installed, it of course gave me the message that I needed to install Adobe AIR to run the program.
    How can that be "truly a native app?" The same happens in iOS, obviously. Is Flash running in a web browser a "truly native app" in that case? The extra step of making users download the Adobe AIR package makes it all seem so half baked compared to actual native apps. I'm assuming there is no way to package AIR with your app? Not that it's a great alternative, but I can't think of what else would make this situation better.

    It appears you may be confusing iOS with Android a little bit. The article you referenced was speaking solely about iOS, not Android. So, yes, they were correct.
    Now, there is a new option in AIR 3 that allows you to package your applications WITH the AIR Runtime for Android. This is called "Captive Runtime" and allows you to create applications that do not need to reach out to grab AIR from any marketplace because it is already packaged.
    Here is more information on Captive Runtime:
    http://www.tricedesigns.com/2011/08/10/air-3-0-captive-runtime/
    Here is how you can set up Flash Pro with AIR3:
    http://www.swfgeek.net/2011/09/26/targeting-flash-player-11-rc1-air-3-rc1-in-flash-profess ional-cs5-5/
    Note that if you are using Flash Pro to create an app with AIR 3 you will need actually package the app with the Command Line. The tooling is not yet available in Flash Authoring Environment.
    Here is how you can do that:
    http://www.youtube.com/user/iBrent#p/u/6/MRcoJ6ClLqo
    it is similar to this, but with slightly different switches. There is more info in the command line help.

  • Adobe air app integration with mac help

    Hi  all,
    I want to intergrate my help with adobe air app on mac(so that it should look like mac help). But i am not able to do so as we need to add entry in the file info.plist for doing it. Can anyone please guide me on this. I have downloaded several application but not able to find any application with help intergrated in it. Most of the sample apps don't have any help and the remaining apps send the link to their website for help.
    Any suggestion/ guidance in this regard would be great
    Thanks in advance
    Sumeet

    Try redownloading the Adobe Help application from http://www.adobe.com/support/chc/.
    Hope that helps,
    Frank
    AIR Engineering

  • Adobe AIR on Mobiles

    Hi everyone,
    I am just curious to know when will Adobe AIR will be
    available for Mobiles.
    I came across on the web regarding "Open Screen Project" and
    lookin g forward for Adobe AIR to come on mobiles as there are lot
    of limitations in Flash lite pertaining to local ddevice data
    storage.
    Thanks in advance...

    I would recommend you post your inquiry in the Adobe AIR forum - http://forums.adobe.com/community/air.

  • Adobe AIR ELS meddling with mail.app ????

    All of a sudden, mail.app has decided that, in order to send any email, it needs to have keychain access to something called PrivateEncryptedDatak, which resides in ~/Library/Application Support/Adobe/AIR/ELS/com.apple.com<longStringOfNumbers>/
    Any time I send mail, mail.app asks for the keychain password. Despite the fact that a keychain password is set up, I just need to hit "enter" and "allow" to let mail.app send the email.
    Denying access results in the mail not being sent, and removing the Adobe AIR folder altogether results in a "you don't have a certificate installed" message....
    The SMTP server has been set up to use password authentication....
    The thing is: I did not install anything that should concern mail ....
    And especially nothing that should concern @#$%^&* Adobe...
    What is this AIR ELS thing and how do I get rid of it?????
    Thanks!

    I've made a little headway with this. Within your initHandler just make a call to login:
    FacebookMobile.login(loginCallback, this.stage, [], webview);
    webview is a StageWebView instance with the viewPort defined. If I left it null, or didn't set the viewPort nothing happens...
    var webview:StageWebView = new StageWebView();
    webview.viewPort = new Rectangle(0,0,400,400);
    I'm now getting a login screen.

  • Adobe AIR applications compatible with Android?

    As I understand that Adobe Flash is supported on Android 2.1 and 2.2 versions.
    But I could not find if Adobe Air applications are also supported. Please let me know what versions are supported since in the system requirements for Adobe AIR only Windows, Mac and Linux were mentioned with no reference to Android as such.
    I am new to both Android and Adobe Air so please excuse any misrepresentation in the query.
    Thanks!

    AIR is compatible with Android 2.2 on ARMv7 devices.

  • Change Encore Project into a adobe air desktop application with password

    Good afternoon,
    I am trying to find a a way that i can change or inport a Encore project into a adobe air desktop application so that a can password protect it. I have a training simulator built in Encore that has a large number of menus and videos that i would like to tern into a tesk top application that i can password protect. Encore out puts this as a swf file. Is there any way to do this? I have bin looking around an the web and can't seem to find any information on this kind of problem. Any help would be greatly appreciated.
    Many thanks,
    Justin

    Hi Justin,
    ok, assuming that your external SWF tries to access some hosting application context (methods/properties) you could try:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                applicationComplete="applicationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   private var loader:URLLoader = null;
                   protected function applicationCompleteHandler(event:FlexEvent):void
                        loader = new URLLoader();
                        loader.dataFormat = URLLoaderDataFormat.BINARY;
                        var url:String = "MyApplication.swf";
                        loader.load(new URLRequest(url));
                        loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.addEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);                   
                   protected function loaderCompleteHandler(event:Event):void
                        // allow cross-scripting in case loaded content tries to access
                        // that context properties or methods
                        var context:LoaderContext = new LoaderContext();
                        context.allowCodeImport = true;
                        swfLoader.loaderContext = context;
                        swfLoader.load(loader.data);
                        cleanup();
                   protected function loaderErrorHandler(errorEvent:IOErrorEvent):void
                        mx.controls.Alert.show(errorEvent.text, "ERROR");
                        cleanup();
                   private function cleanup():void
                        loader.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.removeEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);
                        loader = null;
              ]]>
         </fx:Script>
         <!-- ui -->
         <s:SWFLoader width="100%" height="100%" id="swfLoader"/>
         <!-- -->
    </s:WindowedApplication>
    See that doc for some details "allowCodeImport":
    http://www.adobe.com/devnet/flashplayer/articles/fplayer10_1_air2_security_changes.html
    note: I'm not sure if that would 100% work. I don't know what Encore authored .swf really do, for that you could ask on Encore forum:
    http://forums.adobe.com/community/encore/encore_general
    regards,
    Peter

  • Adobe Air and Mobile Devices

    Hi! I have a project wich we plan to offer it in blueberry
    and other devices.
    At the moment we use java, but we plan on replace it for
    Adobe Air/Adobe Flex, based on how it is supported.
    Any information to share?

    Hi! I have a project wich we plan to offer it in blueberry
    and other devices.
    At the moment we use java, but we plan on replace it for
    Adobe Air/Adobe Flex, based on how it is supported.
    Any information to share?

  • Adobe AIR 2 Beta with Flash Builder 4 Beta 2

    I'm trying to figure out how to use AIR 2 with Flash Builder 4.  I was initially under the impression that FB4 has AIR2... but the when I create a File object and try to call the function openWithDefaultApplication().  An error occurs saying the function doesn't exist.  This is the AIR application I created in FB4.  Am I doing something wrong or do I need to install AIR 2 somehow -- and if so, how do I do so?
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/halo">
         <fx:Script>
              <![CDATA[
                   private function launch():void{
                        var myfile = new File("C:\Windows\notepad.exe");
                        myfile.openWithDefaultApplication();
              ]]>
         </fx:Script>
         <s:Button x="439" y="155" label="Button" mouseDown="launch()"/>
    </s:WindowedApplication>
    Thanks in advance.

    Download the AIR 2 SDK, make a new copy of the Flex4 SDK (or whichever Flex SDK you want to use) and copy the AIR SDK over it. (If you are on the Mac, you have to be careful that the directories themselves aren't overwritten -- just the files inside them.) You then add the combined SDK to the list in the Flash Builder project properties dialogs.

Maybe you are looking for