Adobe AIR on Mobile with Facebook

I develop an Adobe AIR application for mobile devices to work with Facebook. I use the API ActionScript Adobe for the Facebook platform

I can get the Facebook of Actionsctipt code as follows:

FacebookMobile.init ("my-digital-app-id", initHandler);

function initHandler(success:Object,_fail:Object):void

{

within the connection manager

}

The purpose of success is null and and the object of failure has the message "an active access token must be used to query information about the current user.

What is the problem here or what else is needed to make mae, it works?

I've made a little progress with that. Within your initHandler just make a call for you connect:

FacebookMobile.login (loginCallback this.stage [], webview);

WebView is an instance of StageWebView with the viewport defined. If I left it is null or has not indicated the display window, nothing happens...

var webview:StageWebView = new StageWebView();

webview.viewPort = new Rectangle (0,0,400,400);

Now, I get a login screen.

Tags: Adobe AIR

Similar Questions

  • Adobe AIR desktop application with an embedded runtime

    Hello

    What is a desktop application Adobe AIR with an embedded runtime (independent/portable) than Kropotkin work of Windows on a Mac too much on?

    Thank you

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

  • Adobe AIR for mobile expectations and misconceptions?

    Hello, I'm a bit confused by the contents published by Adobe, who claims that AIR for Android or iOS publication creates a fully native application.

    For example, in this Adobe Developer Connection article (http://www.adobe.com/devnet/logged_in/abansod_iphone.html) written in May 2011, the following applications are made:

    "Since we are able to compile ActionScript to the advance ARM, the application gets all the benefits that would provide the JIT and the license compliance need not be lasting in the final application."

    "When you build your app for iOS, there is no interpreted code and no runtime in your final binary." Your application is really an application native iOS. »

    After reading a lot of information like this from Adobe and other sources, I advanced and bought an Android phone. After graduating in reality the. Published in Flash Pro CS 5.5 on the phone and installed apks, he of course gave me the message that I needed to install Adobe AIR to run the program.

    How this can be "truly a native app? The same thing happens in iOS, obviously. Flash works in a web browser a "truly native app" in this case? The extra step of download users the Adobe AIR package makes it all seem so cooked half compared to actual native applications. I guess there is no way AIR package with your app? Not that this is a great alternative, but I don't see what else better this situation.

    It seems that you may be a little confused iOS with Android. Article that you referenced spoke only of iOS, Android not. So, Yes, they were right.

    Now, there is a new option in AIR 3 that allows you to pack your WITH the AIR Runtime for Android applications. This is called "Captive Runtime" and allows you to create applications that do not need to reach out to grab AIR everything on the market because it is already packed.

    Here is more information on the Runtime in captivity:

    http://www.tricedesigns.com/2011/08/10/air-3-0-captive-runtime/

    Here's 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 international-cs5-5 /.

    Note that if you use Flash Pro to create an application with AIR 3 you actually will consolidate the app with the command line. The tool is not yet available in the Flash authoring environment.

    Here's how you can do this:

    http://www.YouTube.com/user/iBrent#p/u/6/MRcoJ6ClLqo

    It is similar to this, but with slightly different switches. There is more information in the command line help.

  • Time of excessive latency of connection... Adobe Air supports on mobile connection pooling?

    Hello

    I'm developing a mobile application that loads the thumbnail images to a remote server. During testing on the Android platform, however, I discovered that the images are very long to load. By monitoring the server logs, I determined that poor performance is caused by the absence of connection pooling, which means that each request creates a new connection. Running the sample code below on a mobile device produces 20 applications and 20 attempts to connect. By comparison, the same web application or desktop creates 2 connections and reuses connections for the following applications. Important overhead and latency associated with generating new connections has a significant impact on performance, with 20 thumbnails taking about 4-5 seconds to load on mobile compared to 0.5-1 second on a desk.

    I've included a sample application below the emphasis placed on the performance issue. The image itself is very small (290 bytes), to focus the issue on the latency of the connection. I confirmed this behavior on many Android devices running 4.1, 4.0 and 2.3. I also tried using the charger c. URLLoader v. URLStream and v. sequential loading with no change in the behavior of simultaneous connection. Trying to set up the connection to 'keep-alive' in the URLRequest has also no effect.

    package

    {

    import flash.display.Loader;

    import flash.display.Sprite;

    import flash.display.StageAlign;

    import flash.display.StageScaleMode;

    import flash.events.Event;

    import flash.net.URLRequest;

    import flash.utils.getTimer;

    SerializableAttribute public class Main extends Sprite

    {

    private var _count:int = 0;

    public void Main()

    {

    Super();

    internship. Align = StageAlign.TOP_LEFT;

    stage.scaleMode = StageScaleMode.NO_SCALE;

    trace ("Start time" + getTimer() + "ms");

    var loader: Loader;

    var url: String = " " http://fbcdn-profile-a.akamaihd.NET/static-AK/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif ";  290 bytes

    for (var i: int = 0; i < 20; i ++) {}

    loader = new this.addChild (Loader()) as a charger.

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, complete);

    Loader.Load (new URLRequest (url));

    }

    }

    private void complete(event:Event):void

    {

    _Count ++

    trace ("Completed" + _count + 'to' + getTimer() + "ms");

    }

    }

    }

    So, I have a few questions:

    (1) is there something I can do to allow the reuse of connection?

    (2) is it an inherent limitation with Adobe Air for mobile?

    (3) is that someone can confirm if this limitation exists on other mobile platforms (iOS or Blackberry)?

    Any help you can provide would be greatly appreciated. I really hope that this isn't a fundamental limitation of Adobe Air because it weakens my application to feel very slow.

    Thank you

    Adam

    Hmm. You were quite right, it's a little disappointing!

    This is Android recompiled for 3.4 rather than 3.1.

    null

    OVER 50 with 8 Chargers in 11327 milliseconds or 226,54 by load.   50 8 11327 226,54

    OVER 50 with 50 Chargers in 8899 milliseconds or 177,98 by load.   50 50 8899 177,98

    OVER 50 with 50 Chargers in 9280 milliseconds or 185,6 by load.     50 50 9280 185,6

    OVER 50 with 50 loaders in 9513 milliseconds or 190.26 per charge.   50 50 9513 190.26

    OVER 50 with 8 Chargers in 9744 milliseconds or 194.88 by load.     9744 8 50 194.88

    OVER 50 with 1 Chargers in 16383 milliseconds or 327.66 by load.   16383 1 50 327.66

    Compared with Apple iPad recompiled for 3.4 rather than 3.1.

    null

    OVER 50 with 8 Chargers in 502 milliseconds or 10.04 per charge. 50 8 502 10.04

    OVER 50 with Chargers of 50 to 100 milliseconds or 2 per load.     50 50 100 2

    OVER 50 with 50 Chargers in 117 milliseconds or 2.34 per charge. 50 50 117 2.34

    OVER 50 with 50 Chargers in 93 milliseconds or 1.86 per charge.  50 50 93 1.86

    OVER 50 with 8 tires in 270 milliseconds or 5.4 per charge.    50 8 270 5.4

    OVER 50 with 8 Chargers in milliseconds of 307 or 6.14 per charge.  50 8 307 6.14

    OVER 50 with 8 Chargers in 316 milliseconds or 6.32 per charge.  50 8 316 6.32

    OVER 50 with 4 Chargers in 555 milliseconds or 11.1 per charge.  50 4 555 11.1

    OVER 50 with 4 Chargers in 547 milliseconds or 10.94 per charge. 50 4 547 10.94

    OVER 50 with 4 Chargers in 535 milliseconds or 10.7 per charge.  50 4 535 10.7

    OVER 50 with 2 Chargers in 1038 milliseconds or 20,76 by load.        50 2 1038 20,76

    OVER 50 with 2 Chargers in 1042 milliseconds or 20,84 by load.        50 2 1042 20,84

    OVER 50 with 1 Chargers in 2107 milliseconds or 42,14 by load.        50 1 2107 42,14

    OVER 50 with 1 Chargers in 2099 milliseconds or 41,98 by load.        50 1 2099 41,98

    Both are on the exit compilation, which should take all of the variability. So, Yes, it is as if the Runtime AIR 3.4 lost the pool of connections, but ONLY for Android.

    PS: Code I used in my test (which was a view based Mobile application conventional) is below in case you want to include it when you submit a bug report.


    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark" title = "TestLLatency" xmlns:mx = "library://ns.adobe.com/flex/mx" >

      Import mx.events.FlexEvent;
      
    protected function uicomponent1_creationCompleteHandler(event:FlexEvent):void
    {
    startTest();

    }
        
    public function startTest (): void {}
    If (tail) throw new Error ("Please wait for the previous test at the end.");
    queue = new Array();
    _Count = 0;
    var loader: Loader;
    var i: int;
    for (i = 0; i< numtoqueue;="" i++)="">
    loader = new bob.addChild (Loader()) as a charger.
    Loader.x = (I have 10%) * 50;
    Loader.y = Math.floor (i/5) * 50;
    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, complete);
    queue.push (Loader);
    }
    startTime = getTimer();
    for (i = 0; i
    nextQueue();
    }
    }
    protected var startTime:int;
    protected var endTime:int;
    protected var numToQueue:int = 50;
    protected var numLoaders:int = 8;
    protected var queue: Array;
    private var _count:int;
    private void complete(event:Event):void
    {
    _Count ++
    nextQueue();
    }
    [Bindable] protected var results: String;
    protected function nextQueue (): void {}
    var url: String = "http://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif";  290 bytes
    if(queue && queue.) Length) {}
    var loader: Loader = queue.pop () as a charger.
    Loader.Load (new URLRequest (url));
    } else {if(_count==numToQueue)
    endTime = getTimer();
    var last: int = endTime-startTime;
    results += "\n" + ("COMPLETED" + numToQueue + "with" + numLoaders + "Chargers in ' + (elapsed) +" milliseconds or ' +(elapsed/numToQueue) + ' by load.\t"+[numToQueue,numLoaders,elapsed,elapsed/numToQueue].join("\t ' ""));
    queue = null;
    {while(Bob.numChildren>5)}
    bob.removeChildAt(bob.numChildren-1);
    }
    bob.getChildAt (0) .addEventListener (MouseEvent.CLICK, repeatTest);
    bob.getChildAt (1) .addEventListener (MouseEvent.CLICK, repeatTest);
    bob.getChildAt (2) .addEventListener (MouseEvent.CLICK, repeatTest);
    bob.getChildAt (3) .addEventListener (MouseEvent.CLICK, repeatTest);
    bob.getChildAt (4) .addEventListener (MouseEvent.CLICK, repeatTest);
    }
    }
    protected function repeatTest(event:MouseEvent):void {}
    var dob:DisplayObject = event.target as DisplayObject;
    var testBehaviour:int = dob.parent.getChildIndex (dob);
    try {}
    {Switch (testBehaviour)}
    case 4:
    this.numLoaders = this.numToQueue;
    break;
    case 3:
    this.numLoaders = 8;
    break;
    case 2:
    this.numLoaders = 4;
    break;
    case 1:
    this.numLoaders = 2;
    break;
    case 0:
    this.numLoaders = 1;
    break;
    }
    startTest();
    dob.removeEventListener (MouseEvent.CLICK, repeatTest);
    for (var i: int = 0; i<5;i++)>
    } catch(e:Error) {}
    trace (e.message);
    }
    }
     
    ]]>


     


     
     
     

  • problem downloading mobile app built with Adobe AIR at the Apple Store

    We have built our mobile application using the Adobe AIR platform not Apple XCode.  Everything went very well throughout, we were able to create all the required certificates and provisioning profiles for development and test the application on real iPhones (3GS and 4) and cross the whole iTunes Connect meta data entry process, but now, when we try to download the binary file into the Application Loader, we keep getting this error when we try to download :
    "Application has no codesign verification.  The signature was invalid, or it was not signed with a certificate of presentation of Apple. »
    Would like to understand how to solve this problem...
    Thank you very much
    Birgitte

    Kept the com.company part? It is normal not to use numbers at the beginning, but I am surprised if you ran it without using the com.company bit.

  • error 'BlackBerry Tablet OS SDK 0.9.4 for Adobe AIR does not support mobile projects."

    Hello

    I installed Adobe Flash Builder Burrito and Blackberry Tablet OS SDK 0.9.4 on Windows 7. When I start to create a new project by selecting the ' New/ActionScript Mobile Project' menu, then in the new dialog box project of Mobile of ActionScript, I give a project name, and then choose 'BlackBerry Tablet OS SDK 0.9.4 for Adobe Air. At this point, the 'Next' button is gray on an error message on top as "BlackBerry Tablet OS SDK 0.9.4 for Adobe AIR does not support mobile projects.". Is there something that I am missing?

    I read somewhere someone comlains error message "BlackBerry Tablet OS SDK 0.9.4 for Adobe AIR support not projects mobile." occurs after installing Blackberry Tablet OS SDK 0.9.4 while there is no problem with Blackberry Tablet OS SDK 0.9.3. If it is true, where can I download Blackberry Tablet OS SDK 0.9.3?

    Thank you very much in advance,

    John

    @johnwneg, make sure that when installing FB Burrito, you:

    (1) run the installer as administrator.

    (2) select English International rather than NA English.

  • Adobe AIR - will not update - error. "Please contact your administrator. There may be a problem with your SMA *.

    Former title: adobe AIR

    I disabled adobe AIR updates made, because every time he did it would download additional programs that I didn't and it was sometimes difficult to roll of them. I thought that my computer started to act funny then I changed it back to make updates and that's when it started, it will not update. * Error. Please contact your administrator. There may be a problem with your SMA *. It won't let me uninstall it even. I tried to * run as administrator * also, none of this seems to work. I talked with a technician from best buy to the cat there, he mentioned a virus, but they want, of course, a very pretty penny to help. He also told me the program or software is not crucial. I did read threw some of the suggestions that have been posted already, but a lot of it seemed to be another language for me. I'm usually not too bad with this irritable stuff, but I found it confusing. Other than that, I get actually to the point of my computer completely wiping everything and starting over.

    Installer advance user as http://www.revouninstaller.com/revo_uninstaller_free_download.html
    andthe problems with programs that cannot be installed or uninstalled

    In addition to contact
  • Questions of Smartphones blackBerry with Facebook (Mobile Site)

    I have problems with the Facebook app. I have the Blackberry 3 G (9330) through Sprint and I updated my Blackberry 5.0 to 6.0 software. Since then, the (Mobile site) Facebook will allow me to type in up to about 20 characters at the presentation of my status or by sending an e-mail. Once there I hit around 20 characters, the screen freezes and then he boots me out of the FB (Mobile site), and accesses the bookmark page. I reinstalled that App thought he may have not installed properly and can affect the Facebook Mobile site, but I'm still having the same problem. However, when I use the Facebook app, I am able to update my status and send by e-mail with the help of more than 20 characters that is allowed in the Facebook (Mobile site). Is there something I can do to get this corrected? I prefer the mobile site because I can see the anniversaries of my friend on the homepage, and it offers more options than the FB App.

    After playing with the settings, I found that if you have "assistance entered through keyboard" under Options/set to predictive typing, it interfere with any data that are given in the Facebook browser and do freeze. I changed the setting to direct instead of predictive and this has solved the problem. Thanks for your help!

  • How to install (created with Adobe Air) ipa for ipad

    Dear friends,

    I created an ipad app using Adobe Air. It works fine when I compile and I did a package by using a certificate created with mac computer and a .p12 also. I created a file ipa, that it connects with itune and I can install... after installation, the icon and the app will auto-hide or uninstall of form my ipad. What is the reason. Please help me install my ipa file created with Adobe air to ipad6. I used developer certificate as well as ad-hoc too... both give the same error... just install and immediately hiding or uninstall. pls help me.

    Thank you and best regards,

    Syed Abdul Rahim

    It must match the id of the page of an apple developer certificate bundle:

  • Cannot open the Muse due to issue with Adobe Air

    Mac OS 10.6.8 on a 2.4 GHz Intel core Duo w 4 MB of ram

    Muse v.7.4.30, worked well until - while trying to open, I was prompted to update Adobe Air. I have so much and now cannot open Muse.

    A warning window says:

    "This application requires a version of Adobe Air, which is not found."

    • I uninstalled the 'new' version (from AA)
    • downloaded an older version on the adobe website - v.17.
    • restart the computer.
    • v.17 installed
    • restarted the computer and still could not open the Muse - with the same alert pop up.

    anyone?

    Try to download and install version 19 instead of 17.

    More info: Re: what version of Adobe Air is required for running what version of Muse?

  • What is Adobe Connect Mobile based on Adobe Air?

    I want to know is Adobe Acrobat Connect Pro application based adob air platform?

    Y at - it all native extions used if it is built on the air?

    I think that it doe run on AIR.

    What do you mean by native extensions? Do you mean the objects you can load in the share pod and do work in the mobile app?

    I know that you can load the file PPT (X), FLV, JPG, PNG and MP3 and they should appear correctly in the mobile App MP4, F4V and PDF can also work, but I'm not sure about those 100%.

    I know that content SWF does not currently work in the mobile application.

  • I have major problems with adobe air.

    I have major problems with adobe air. day before yesterday it works. now, he tell me that it is musconfigure. so I tried a download again. but still does not.

    I discovered the problems. Have a nice weekend

  • Need help with adobe air!

    Error message "request for adobe air.:"a download error occurred. " try to download again? »

    That's when I'm trying to download something. Right now I use the update feature and or vudu (Cloud Computing service) Adobe air doesn't let me download on my computer!

    error!  : "a download error occurred. try to download again? »

    I tried to reinstall it and the same...

    It happens with all downloads? The same error occurs trying to access the same download from another computer? What version of AIR?

    I had recommended ad again with more details here:

    http://forums.Adobe.com/Community/air

    Hope that helps,

    -Dave

  • Problems with BBC iPlayer Desktop and Adobe Air for Mac

    I would be grateful to anyone who can help me with a problem I have on my laptop computer running Mac OS X Lion 10.7.3.I has problems running BBC iPlayer Desktop, and I suspect that it is caused by Adobe Air.

    Recently, I was invited to update Adobe Air to the latest version (from February 2012) and after I updated the program, it started to cause problems when I used BBC iPlayer desktop.

    The first problem is that I was unable to play any programs downloaded mode full screen-, I have noticed that the sound is played, not the video.

    Secondly, a few weeks after the beginning of this problem, all my TV programs have mysteriously disappeared.

    My last problem is that whenever I run the BBC iPlayer application it is impossible to download new programs - when I am connected to the internet, the application always says he's 'offline '.

    I tried to solve the problem by rebooting my computer, uninstall and reinstall the BBC iPlayer, deactivation and reactivation of my firewall, connection to the internet in different places, but this has not solved the problem.

    I tried to uninstall Adobe Air, but the installation package says it is "corrupted". So I tried to download and reinstall the application from the adobe website, but already, the computer recognizes that the application is installed. either - I can't uninstall or reinstall Adobe Air.

    I contacted the support of BBC iPlayer and they are unable to help - direct me to your Web site. I have read several other topics of discussion published on this site but not found the solution that I'm looking.

    Please some can help me to solve this problem, helping me to uninstall and reinstall Adobe Air for Mac?

    I'm not very technical, mind - for example - I don't know what log files are or how to find them - so please explain as simply as possible.

    Thank you in advance for your help!

    Ryan

    Hi Ryan,

    Could you try to delete the folder preferences of BBC iPlayer then restarting iPlayer to see if that helps?  You should be able to find this in ~/Library/preferences.  Find the folder from BBCiPlayerDesktop and a long series of characters and move or rename this folder.

    Thank you
    Chris

  • Many problems with the runtime Adobe AIR for Android

    I created an application on Adobe AIR for Android platform, which requires for AIR. The app is very popular in the Android Market, but many users complain of problems with the installation of the Adobe Air runtime.

    For example, these users phones: LG LGE-P698, LG Pecan, HTC Wildfire. But judging by the fact that users have access to the installation of the Air, their phones are compatible with it.

    Tell me how to solve the problem?

    In addition, I have a few questions:

    1. Decides that the problem of demand for export with built-in AIR runtime?

    2. I have create my applications using ADT. In this case how do I seal AIR runtime?

    3. is it possible to invite the user to download and install older versions of AIR? Where can I find her?

    I hope I can help, because the problem is global.

    Hi Astraport,

    I think you should integrate the air in your application runtime,

    Some time ago I wrote a step by step guide, take a look at this post:

    http://forums.Adobe.com/message/3961579#3961579

    I hope it helps

Maybe you are looking for

  • Satellite 2430 XP startup problem

    Windows XP will not load on my laptop Satellite 2430-402, saying that the C:\Windows\System32\config\system file is missing or damaged and to try to run the option repair. I have 2 Toshiba Recovery CD which I managed to launch the program of recovery

  • Re: Need for built-in models Equium with webcam list

    Hello, newbie here! I am in the United Kingdom and intend to buy a satellite. Is there a list of models who have a webcam? I am particularly interested in the A200-1VO and P200 models. The answers that very appreciated :)

  • Pavilion laptop - 15-p114ne: Miracast Compatible?

    Hello I HP Pavilion Notebook - 15-p114ne working under win 8.1, in the specifications of the laptop, it is mentioned that it is compatible miracast but it seems that it is not compatible miracast. I tried the tool to update intel widi and he says he'

  • cRIO FTP transfer file size limit

    Hello I generated a data file on my cRIO which is about 2.1 GB in size. I can't transfer this file to the cRIO via FTP. I tried windows FTP Explorer, the built in MAX file transfer utility, coreFTP and WinSCP. I am able to transfer other files on the

  • 5535 envy: Envy 5535 does not photo print

    Error: could not print full page leader. Photo Viewer gives the same message.