Desktop AIR app and Facebook login

I try using this lib https://code.google.com/p/facebook-actionscript-api/, but when I call FacebookDesktop.init("820024968051122",loginHandler); I get error:
code: 2500
message: An active access token must be used to query information about the current user.
type: OAuthException
If I call FacebookDesktop.init("820024968051122",loginHandler,"test_user_token"); then all work fine, but how I get token if user is not log in?

Thanks for the answer.  How exactly Flash Builder is running is a little clearer to me now.  I checked and the timestamps were indeed being updated correctly.
This helped me to look elsewhere for the issue.  I actually now think it may have to do with mobile home sync that I have going through OS X.  Whenever the sync runs, FB seems to launch an outdated (as in hours ago) version of the app.  Despite the fact that the sync is not pulling in new files, it seems to be the issue.  If i stop the sync I start seeing the current version of the app again when I run the debugger.  So I think its just the OS causing my problem (although I still don't completely understand why exactly the issue would manifest itself in FB).  Fortunately I can recreate the issue every time I run the sync, so the problem is consistent at least!
Thanks again for your help.

Similar Messages

  • What's the difference on StageWebview in Mobile and Desktop AIR apps?

    Hi,
    What's the difference between StageWebView in an AIR mobile and
    AIR desktop app? (AIR 3.9 SDK)
    I have the problem that in a StageWebView related feature is working and on mobile but not on desktop AIR apps.
    The feature lets users login into a website and post to the forum - on mobile it seems that the cookie/session is not found.
    What could be the reason for that?
    Any ideas welcome!

    I would recommend against using useNative = true in Windows, because that means the behaviour and presentation of the page is very unpredictable, since the user can have pretty much any version of IE from 6 to 11 and beyond. That's more than a decade worth of different (and some really old and buggy) versions of Internet Explorer. The embedded WebKit in AIR could use an update (it's a bit old), but it's still a lot better than the wild territory of native IE ;-). I'm glad the AIR team listened to us and in AIR 3.9 they gave us back the option to not use native IE in Windows (in some of the previous versions, such as AIR 3.6, 3.7 and 3.8, only the IE engine was available to StageWebView, which forced me to use AIR 3.5 for Windows versions of my application, since the IE engine provided all sorts of problems).
    Anyway, I don't understand your post very well. First you say "is working and on mobile but not on desktop AIR apps". From that I get that your page is working on mobile but doesn't work properly on desktop, but then you say "on mobile it seems that the cookie/session is not found". That contradicts the other sentence, since now you're saying it doesn't work properly on mobile.
    Which one is true?

  • Unable to connect with Kuler Air app and Extension

    Hi,
    I am unable to connect Adobe Kuler Desktop(Air app). I can't login through the app. Only thing I can see when I launch the app is the RGB rotating, even after an hour.
    I tried reinstalling the app two three time. No way. same issue persits.
    I tried to connect through a proxy server enable and through a direct connection. same issue.
    Not only the Kuler Desktop, but the plugin also has the same problem.
    Please help.

    Hello, I was getting the same RGB loading... issue, however I was able to Sign In at the bottom with my Adobe ID, and then themes started loading when I selected from the dropdown (e.g., Most Popular). It's a little slow, but seems to be working.

  • How to read http cookies from adobe desktop Air app using flex/flash builder in AS 3.0 ??

    Im developing Adobe desktop air app where i need to read the session id from the cookie of a http request.
    I have found a property called URLRequest.manageCookies supported by AIR so i Hope there should be a way to read the cookies as well. Im Using Flash Builder 4.5
    Please provide any reference code or guide me for this research;
    searched a lot regarding on this web.
    Most results lead to local shared object or reading cookies fr a webpage using javascript and ExternalInterface.
    I want to read http cookies not Local shared Object and in a desktop AIR application.
    Im using Flash builder 4.5
    Thanks
    Hari

    Sorry, but you are at the wrong forum; this one is only for discussions on the forums themselves. The Air forums are here:
    http://forums.adobe.com/community/air

  • Desktop AIR app debug build running from cache?

    I'm new to flash builder (using 4.5 for os x) and I've been working on a desktop AIR app for the last week.  I've been running into a strange issue when deugging my app.  Every once and a while (maybe 4-5 times a day) after I make changes to my code and I make a new debug build, a much older version of the app runs when I run the app with or without the debugger, or even if I export for release.  It's as though its running (or building) from the cache, except I'm building a desktop app and I'm not testing the swf on a browser.  I've turned off "Build Automatically", cleaned the project and build again but no changes are reflected.  I can't figure out how, but after cleaning, quitting flash builder, restarting, cleaning, building again, etc.. numerous times suddenly I will see the current version of the app back up and running.  I cannot for the life of me figure out how to quickly resolve the issue, or what exactly is fixing it. Every time it seems like something else triggers FB to refresh the build.  I can even run the debugger and step through my current code while seeing completely different results on the screen.
    Has anyone else run into this issue?  Anyone know what I may be missing?  Are there settings I need to change besides "Build Automatically"?  Thanks for your help,
    Nick

    Thanks for the answer.  How exactly Flash Builder is running is a little clearer to me now.  I checked and the timestamps were indeed being updated correctly.
    This helped me to look elsewhere for the issue.  I actually now think it may have to do with mobile home sync that I have going through OS X.  Whenever the sync runs, FB seems to launch an outdated (as in hours ago) version of the app.  Despite the fact that the sync is not pulling in new files, it seems to be the issue.  If i stop the sync I start seeing the current version of the app again when I run the debugger.  So I think its just the OS causing my problem (although I still don't completely understand why exactly the issue would manifest itself in FB).  Fortunately I can recreate the issue every time I run the sync, so the problem is consistent at least!
    Thanks again for your help.

  • Mobile app to desktop air app

    How do I convert my mobile air app to a desktop air app.  I basically just want the app to look just like the emulator version but maybe with a 1024x768 view instead (tablet sized).

    When you build the release build of the application, you can choose "AIR for desktop" and the app looks exactly like in the emulator.
    Otherwise you have to port some of your application components to an AIR project (if you want the full AIR desktop functionality).

  • AIR app and Flex app in same Flex builder project

    Hi,
    I've developed a flex app with a lot of custom components.
    Now I want to create a desktop version of the same using the same
    exact same components. Is it possible that I add an mxml
    application, make it a WindowedApplication and compile it to
    produce an AIR app? Or are there any workarounds to accomplish
    this.

    Easiest way I have found is to complete your Flex Web app.
    Then create a new Flex AIR app and then copy code from your working
    Flex Web app over.
    Yes, you end up with two complete sets of code, but if that
    is going to become an issue with keeping both versions up to date
    you can simply use one set of source.
    To do this, create two projects, one Web, one Air. Then you
    can create a third folder (not project) that contains all the
    common code.
    In each of your projects, simply import the code you want to
    use using the project options.
    No, not ideal, but does work. Would be nice to see Flex
    Builder changed so you can have rooted projects.
    E.g. A project called "MyBigApplication" that isn't targetted
    at any platform. Within this you could then produce sub-projects
    that target a particular platform, be it web or air but share code.
    Maybe in the next version.....
    Cheers
    Ian

  • Best Practice in maintaining multiple apps and user logins

    Hi,
    My company is just starting to use APEX, and none of us (the developers) have worked on this before either. It is greatly appreciated if we can get some help here.
    We have developed quite a few applications in the same workspace. Now, we are going to setup UAT and PRD environments and also trying to understand what the best practice is to maintain multiple apps and user logins.
    Many of you have already worked on APEX environment for sometime, can you please provide some input?
    Should we create multiple apps(projects) for one department or should we create one app for one department?
    Currently we have created multiple apps for one department, but, we are not sure if a user can login once and be able to access to all the authenticated apps.
    Thank you,
    LC

    LC,
    I am not sure how much of this applies to your situation - but I will share what I have done.
    I built a single 700+ page application for my department - other areas create separate smaller applications.
    The approach I chose is flexible enough to accomdate both.
    I built a separate access control application(Control) in its own schema.
    We use database authenication fo this app - an oracle account is required.
    We prefer to use LDAP for authentication for the user applications.
    For users that LDAP is not option - an encrypted password is stored - reset via email.
    We use position based security - priviliges are based on job functions.
    We have applications, appilcations have roles , roles have access to components(tabs,buttons,unmasked card numbers,etc.)
    We have positions that are granted application roles - they inherit access to the role components.
    Users have a name, a login, a position, and a site.
    We have users on both the East Coast and the West Coast, we use the site in a sys_context
    and views to emulate VPD. We also use the role components,sys_contexts and views to mask/unmask
    card numbers without rewriting the dependent objects(querys,reports,views,etc.)
    The position based security has worked well, when someone moves,
    we change the position they are assigned to and they immediately have the privileges they need.
    If you are interested I can rpovide more detail.
    Bill

  • HT6154 I updated to iOS 7.1.1., then I can not turn on my facebook app and facebook messenger app now!

    I updated to iOS 7.1.1., then I can not turn on my facebook app and facebook messenger app now!

    https://discussions.apple.com/message/25195858#25195858

  • IPhone 3gs keeps crashing when using camera app and Facebook

    My iPhone 3Gs is on its last legs, has been for a while, but I can't afford to upgrade just yet.
    It keeps switching off, screen fades to black, when I use both the camera app and Facebook. I then have to reboot. It's not a battery issue, as it happens regardless of whether there's 90% or 9% battery life left, but just seems to happen randomly.
    Today, it crashed when I pressed the shutter 'button' to take a photo, yesterday it was while I was selecting a focus point. Really frustrating, as I use the camera a lot. Facebook crashes the phone randomly, too.
    This morning, I hung up on a call, then the phone died.
    It's running ios5 now but has been doing it for a few months on previous versions of ios, too.
    I've tried restoring to factory settings, but that has done nothing.
    Any help you can give, much appreciated, thanks!

    its not your phone bud im having the same problem to keeps crashing and i know its not that the phone is old unless you call 2days old as got it from apple store buch st glasgow on the 14th dec 2011 its an ios issue im sure as my last 1 updated to ios 5 and it wouldnt read sims no longer after speaking to apple they agreed to replace my handset as they are aware that the ios is frying some 3gs model mines was left a brick ie paper weight so if mines is crashing ect i cant even use the camera as it sticks then switches off apple need to sort this ios 5 out

  • Giving an ICON to my desktop AIR app?

    Well, I just completed my first AIR app. I took an existing
    flex app that my agency has been using for about a year now and
    converted it to AIR. It was much better suited outside the browser
    environment, so this was the perfect chance to try AIR. Well, I
    exported my project. Installed the app to C:\Program Files. I
    selected the option to create a desktop short-cut. Finish! Well, I
    have my app installed and it's on the desktop as well. It runs
    perfectly. The only thing left is to set the icon for the
    application. How is this done aside from manually setting an icon
    from the short-cut's properties menu. Is there a setting in Flex
    Builder that sets the icon? Google has given me no help. Any time
    there's a mention of "learn to add an icon to your AIR app", it
    always refers to an ADOBE AIR class and the material covered.
    Help!! thanks!

    Nevermind, found it after opening the appname-app.xml file.
    After resizing the icon i wanted for each dimension, it
    worked.

  • Itunes, App store, Facebook App and Facebook on Safari are not working...can not connect to app store is the message I get.

    Since Sunday I can not access Itunes or App store with my Ipad 2. I can not use the facebook app, it will log in, but will not load up the newsfeed, I can not use it in Safari either. Also can not use apps like Draw Something.  The same thing has happened to my husbands Ipad. On occasion it will allow the app store or itunes to work. Any ideas?

    I have the itunes and app store working now, but my FB app and FB on Safari will not work and other websites are not working very well on Safari...any ideas?

  • Launch desktop AIR app from swf button

    I have a very simple task. I have an AIR app installed. All I want to be able to do is launch it from a swf button. I am building the swf button in Flash CS6. How do I do this? All it has to do is launch the app. No fancy stuff, no installs, no validation. Just launch the darn app. I can't seem to find a simple solution. Thanks!

    Not sure exactly why yet, but I finally found something that worked!!!! Hope this saves someone else hours of research:
    myCustomBtn.addEventListener(MouseEvent.MOUSE_DOWN, versionDetectCallback);
    var _air:Object;
    var _loader:Loader;
    var appID:String = "thenameofmyapp";
    var pubID:String = " "; 
    function loadAir() : void
    _loader = new Loader();
    var loaderContext:LoaderContext = new LoaderContext();
    loaderContext.applicationDomain = ApplicationDomain.currentDomain;
    _loader.contentLoaderInfo.addEventListener(Event.INIT,onInit);
    _loader.load(new   URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"),loaderContext);
    function onInit(event:Event) : void
    _air = event.target.content;
            //the pubID argument resolves to and empty string ""  
            _air.getApplicationVersion(appID, pubID, versionDetectCallback);
    function versionDetectCallback(event:MouseEvent) : void
           _air.launchApplication(appID,pubID);
    loadAir();

  • Newbie.  Games/Apps via Facebook login?

    Hi All,
    Just got the S3 two days ago and thought I would have a seamless transition to my favorite Apps played via my HTC Incr.2. - after all, this Samsung phone is supposed to be amazing, right? Well, when I open an app (CandyCrush, Draw Something, Pinterest, etc.) and click 'log in/Facebook' I am directed to what appears to be a bad link. Page is blue across the top like facebook and there is an error message that reads "The page you requested was not found. Back to home". 
    Before you ask, I do not wish to create a log in for each app  and deal with even more user ids and passwords-thats what the Facebook option is for. Again, something I did daily on an older phone with Verizon and had no problems whatsoever. 
    I have the luxury of a group of coworkers who 4 out of 6 of us have the S3 and we tested these apps on a TMobile S3 and it worked fine.  Tested on another Verizon S3 and had the same problem I am having.  So I know its not my phone.   
    Any ideas? Something quirky in my settings that I am unaware of?
    I apologize if this has been asked/answered before but I tried several keyword searches in the discussion group and could not come up with anything. 
    TIA!

    Since the Jellybean update, facebook has not worked or works very slowly to the point where it is useless. I find if I use it on wi-fi it will load fast enough that I can at least use it, however, I am not always near a wi-fi so that is when it is a useless app for me. If you go to the facebook app in the playstore, you will see that a lot of people with S3's are having trouble.

  • Blackberry apps and Facebook connectivity

     greetings and salutations fellow believers ! I'd like to know all the apps which allow you share/post content to Facebook or even game saves for example all uken games  can be played on facebook and you can link your mobile account and the accuweather app can post updates as well as spotify  so please share some facebook connected apps.
    Isaiah 41:10 fear not, for I am with you; be not dismayed, for I am your God; I will strengthen you, I will help you, I will uphold you with my righteous right hand.

    How do I enable "share my location with facebook"

Maybe you are looking for

  • Sharing games with different user accounts

    Hello. I've been meaning to ask this for ages and was hoping for some help. There are four user accounts on my mac and my son and daughter love Zoo Tycoon. My question is, how do I share the actual app between the accounts as I can't seem to sort out

  • RE: Report Writer Report with two characteristics

    Hi, I have created a Report with two characteristics - Profit Center and Internal Order(Order) as columns(some columns have Profit Centers and others have Orders). When I run the report, I get the values correctly for Profit Center columns, but the O

  • Twitter app signing in error

    In my Nokia 206 dual sim i downloaded a twitter app. It opens normally but when i enter my username password and try to sign in, it says 'Error occured while signing in please try again'. And after this new file is seen on the Folder of a phone memor

  • Printing Japanese and English letter in Smartform .........its urgent

    Hi Friends, Hope doing great,   Here is my query on Smartform. I am trying to print both japanese and english character in smartform output. Plz help me on this if anybody face same kind problem. Thaks In Advance Mrutyun^

  • Help with linking ProC sample1.pc

    Hi, I can precompile and compile the demo program sample1.pc, but when I link it fails. Here is the command I'm using: proc MODE=ORACLE sample1.pc gcc -I$ORACLE_HOME/precomp/public -L$ORACLE_HOME/lib -lsql sample1.c The error I get is In function 'sq