Facebook AIR permissions

I have an AIR app using GraphAPI_Desktop_1_8_1.swc to access FacebookDesktop. I call FacebookDesktop.login eg:
FacebookDesktop.login(handleLogin);and all is good, the login window opens and the user logs in.
But! when I add extra permission, for example:
FacebookDesktop.login(handleLogin,{perms:"publish_stream"}); 
In the 'handleLogin' callback function I get the following error:
message, An active access token must be used to query information about the current user. 
Any ideas how to resolve this?

Got no idea about the AIR side of things, but I have created Facebook apps using various other languages.  A good source of information for getting access tokens is this blog http://benbiddington.wordpress.com/2010/04/23/facebook-graph-api-getting-access-tokens/
The one thing I always do when I get an error is google that error, as you can normally find information and solutions to the problem.  Double check that you are doing
check the following things when you interact with facebook graph api.
1) Application connect URL should be the base of your \"redirect_uri\"
connect URL:- www.x-minds.org/fb/connect/
redirect_uri -  www.x-minds.org/fb/connect/redirect
2) Your \"redirect_uri\" should be same in the both case (when you request for a verification code and request for an access_token)
redirect_uri -  www.x-minds.org/fb/connect/redirect
3) you should encode the the argument when you request for an access_token
4) shouldn\'t pass the argument (type=client_cred) when you request for an access_token. the authorization server will issue a token without session part. we can\'t use this token with \"me\" alias in graph api. This token will have length of (40) but a token with session part will have a length of(81).
An access token without session part will work with some cases
eg: -https://graph.facebook.com/<user_id>?access_token=116122545078207|EyWJJYqrdgQgV1bfueck320z7MM.
But Graph API with \"me\" alias will work with only token with session part.

Similar Messages

  • I am trying to upload to facebook why permissions

    I am trying to upload photos to facebook and in order to authorize lightroom asks for all these permission access data anytime when I'm not using application, post to facebook as me. Manage my pages
    Why does adobe and lightroom need those permissions
    thanks

    What app did you make your book with?

  • MacOSX AIR Permissions for non-administrator user folders

    We're making final changes to our installer for PowerPC Macs, which cannot get the fixes in Adobe AIR 2.7.
    What are the ownership AND permissions expected to be for normal Adobe AIR operation in the following user folders?
    ~/Library/Application Support/Adobe/AIR
    ~/Library/Preferences/Macromedia/Flash Player/www.macromedia.com/
    /Users/Shared/Library/Application Support/Adobe
    We would like to know if it is advisable to apply the permissions fixes to user folders other than those under the administrator user. Neither the AIR Install Repair.zip posted on the forums nor the MacOSX Adobe AIR 2.7 Installer logs show that any user folders other than those under the administrator user are modified.
    Thanks for your advice.

    Hi,
    I don't believe you'll need to make adjustments to these folders.  Here's what mine are set to:
    /Users/chris/Library/Application Support/Adobe/AIR
    755 / owner:chris group:chris
    /Users/chris/Library/Preferences/Macromedia/Flash Player/www.macromedia.com
    755 / owner:chris group:chris
    /Users/Shared/Library/Application Support/Adobe
    755 / owner:chris group:wheel
    Fwiw, the reason we had to fix up permissions was due to beta versions of past Creative Suite installers (the shipping installers were corrected.)  As far as I know, the only folders effected were the ones we corrected in the installer and I addressed in the script.
    Thanks,
    Chris

  • How to solve a problem ? (use apktool)

    Hi, all
    I can't express what I fully want. (unskillfull english).
    I had implement an air program for the android recentelly.
    This App is hybrid app (AIR and Native App)
    e.g.)
    AIR App :  AIR for android (client socket)
    Native App : just android app (serverSocket)
    In few words here are the steps to merge the two apk from native project and AIR project into one apk:
    Create an AIR App and use adt to create the AIR apk
    Explode the AIR apk with apktool to decompile the application
    Create a native Android App using app. as the package
    Create a AppEntry class that extends the service you need to extends
    Create a MainApp class that extends AppEntry
    Update the AndroidManifest file with MainApp Intent and AIR permissions & settings
    Export an unsigned apk
    Explode the apk with apktool
    Copy the AppEntry*.smali from the exploded AIR apk to the exploded native apk
    Copy the assets folder (SWF and AIR xml) from the exploded AIR apk to the exploded native apk
    Repackage the native apk with apktool
    Sign the new apk
    Run the zipalign tool on the new apk
    Install the new apk into the Android device
    This process can take some time, so the easiest approach is to create a batch file that does all of that at once. Once you have the batch file you can tie it into an Ant or Maven task and have one script does everything easily and you can set it that in one click have the entire Java native and AIR project merge and placed on the Android device.
    and then  I am getting the following dialog box.
    please help me

    This might be coming if you have created apk-debug target of your air application. Try creating release target.

  • Imac wont boot up/clicking noise

    My imac started clicking and recycling and trying to boot up a few days ago. I have an imac G51 2gz 3gig ram. 17inch. I have had it for about year and a half. Shut the computer down and rebooted.
    After putting in the osX leopard disc, I was able to check the drive-says no problems? Next day same thing? Then I couldn't see the disc-rebooted and there it was again-checked the drive again-no problem; rebooted into the imac's drive, came right up.
    Checked the console messages and this keeps repeating:
    4/9/08Wednesday 4:25:23 PM com.apple.launchd[1] (com.app4mac.CheckUpAgent[547]) Exited with exit code: 1
    4/9/08Wednesday 4:25:23 PM com.apple.launchd[1] (com.app4mac.CheckUpAgent) Throttling respawn: Will start in 10 seconds
    4/9/08Wednesday 4:25:33 PM com.apple.launchd[1] (com.app4mac.CheckUpAgent[548]) posix_spawn("/Applications/CheckUp.app/Contents/MacOS/CheckUpAgent", ...): No such file or directory
    Is it the hard drive or something else? I don't have the warranty; is it fairly easy to take the imac apart and put in a hard drive yourself?
    Just what else might be wrong. Thanks, Jon

    Clicking is generally a sign of imminent drive failure, hopefully you have a complete backup/clone of your system. Try the usual panacea of re[airing permissions and see if that helps.

  • How do I download attachments from Facebook to my iPad Air???

    Hello, how do I download attachments from Facebook [messages] to my iPad Air?? I have a PDF file I would like to download, but there's no options/button for me to press and start downloading. PLEASE HELP!

    click download at the bottom left corner of the particular pic you want

  • How do I unlock file permissions on an external flash drive connected to a mac book air?

    Hi there, I have just synced my I tunes library to I Tunes on my mac book air using a WD external flash drive (which I have always used as my storage drive for my entire library and was previously running on a Sony Vaio PC) and although I can now see and play all my files I can't download new content as I get an error message stating "there was a problem downloading.... you don't have priveleges to make changes" which from my research is because the flash drive I tunes folder permissions within it are locked to read only.
    Which is where the problem lies as I can't see anyway to change this when clicking on the drives in my devices and going to the get info option, as although it shows the permission status - you can't edit that?
    Note I know this is the issue as if I change the I tunes media folder location back to the defualt folder as the hard drive on the mac book I can then download new files no problem, however I dont want to store my content on the hard drive of my mac book air as my library is over 300gb and want to keep it all on the external (as I always did when running I tunes on my PC).
    Any help will be apprecaited guys!
    Thanks

    If the drive is formatted as MS-DOS or exFAT, use the Disk Utility in the /Applications/Utilities/ folder to repair it.
    If it's formatted as NTFS, either reformat it or install third-party software which enables the Mac to write to NTFS drives.
    (86377)

  • On iPad Air how do I post a pic to Facebook if the pic is not in camera roll?

    The pic is in a collection synced w my iMac, so the pic is on the iPad Air but not in camera roll. How do I copy a pic to camera roll using only the iPad Air? Then post the pic on facebook?

    How are you trying to post the picture ? On both Safari and in the Facebook app I can select photos which are in other albums in the Photos app - if using the Facebook then tapping 'Camera Roll' at the top of the photo selection window lets me select a different album

  • HT5313 When i use facebook videocall, my mac book air 11 inches no work, i do not why.

    When i use facebook videocall, my mac book air 11 inches no work.

    Hi Nobimon,
    Thanks for that I had missed that.
    FaceTime is an iOS video app for 1-1 contact that has been "transferred" to the Mac OS.
    A Beta version was available for Snow Leopard  and it then came in Lion and is present in Mountain Lion.
    Facebook run a  Jabber server for their "chat" option.
    There is a setting, apparently, on people's Facebook Settings to Enable it.
    The ID can then be used in iChat or Messages.
    Most of what I had read on this suggested it was Text only.
    It is possible that in a web Browser they may use Flash to do Video Chats
    Google Used to then created their Own Video Plug-in that strangely causes issues with a Flash Plug-in being used at the same time.
    Google's plug-in uses the Jingle protocol to connect Video chats.
    7:53 PM      Friday; February 15, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • TS3408 I have a MacBook Air and suddenly Safari cannot find the Facebook server. I am out of my home country but no problem with my iPhone. Laptop was no problem either until now. Any recommendation?

    I have a Mac Air and suddenly Safari can't find the Facebook server. I am out of my home countryt but no problem with my iPhone's Safari. Any recommendations? I would like to put some pictures on Facebook from iPhoto. Thanks.

    you cannot keep up with all of the interfaces 'cause they do not even allow you to use the older os.
    You should be able to upgrade to Mountain Lion via the App Store applicaiton on your Macbook Air.   You do not have to upgrade, but it should be an option.
    I can't even get an ichat acct 'cause, help?
    iChat can use AOL Instant Messenger accounts (they are free), iChat can use Google Talk (Jabber) accounts (actually any Jabber based chat service).   And if you upgrade to Mountain Lion, you shoul be able to get an Apple iCloud account that can be used with the Messages replacement for iChat (think of Messages as being iChat renamed, with additional features).
    Oh and my battery very close to a year after buying it, which is one of the reasons I was so called to it, the battery life.  Well, having it stripped down to minimal usage, while working on nothing crazy, I could be cordless from nevver reahing 100% anymore, just under that, but gets to 20 percent in about 3 hours. No audio, no video, light low, it bothers me anyway.  Please, this is also a huge problem.
    Every battery today, has a limited number of recharges (not just Apple's).   Depending on how many times it has been recharged, will affect how much power it will eventually hold. <http://www.apple.com/batteries/>
    I know that generally after about 2 years of use (my use, not yours) I find that my batteries have very little life left in them (I frequently have my devices plugged in, so running fully on batteries only is most likely less than yours).
    You can have your battery replaced by Apple (for a fee) or by an authorized Apple repair facility.

  • Windows XP Permissions vs AIR Auto Update

    Hello All,
    I've just started getting into AIR, and I've run into an
    issue. I'm planning an app that would be distributed to Windows XP
    users with limited accounts. The issue I'm currently trying to
    tackle is how to get the application to auto update when a user
    opens it from a limited account. Currently it gives me the error:
    "An error occurred while updating the application. Try updating it
    again. If the problem persists, contact the application author.
    Error# 0".
    Since I'm a Mac guy, I don't know too much about permissions
    and account settings in XP. Is there a way to simply give the
    application the necessary permissions without having the user have
    to login every time like the "Run with different credentials"
    option.

    No, there's no way around this. Prevent applications from
    updating themselves is part of what limited accounts are supposed
    to do.
    You might try finding out how software is normally updated
    for these machines. That's probably the path you want to take for
    this application, too.

  • Flash Air For Android FaceBook Invaild Hash Key Error

    Hi all,
    I'm getting facebook connect error with flash/air app on Android device , anyone can help me plz ?
    http://screencast.com/t/Ff6yqVqk
    2jmj7l5rSw0yVb/vlWAYkK/YBwk=

    Yes i already did it but still getting invalid key hash error
    2014-12-28_1337 - redpak's library

  • Adobe Air Mac Change File Permissions

    Hi there
    I have a Adobe Air app for MAC that downloads a zip file then decompresses it uzing the fzip library... After decompression i try executing a .app file with NativeProcess API... But after the decompression the file loses permission to execute enven if i try to manually execute the .app it doesn't open... But if I change the .app permissions with command line the .app opens even with the NativeProcess API.
    So I would need to change the file permissions through Air API... or run a command-line to change ther permission through Air API.
    I also have this application to Windows version (exe) and it works withou any problem. But in Mac when decompressing the file loses permissions.

    ... or launch /usr/bin/chmod to change the permissions (via NativeApp API) and then execute your .app?

  • Using Facebook SDK in Air HTML environment

    Hi,
    I am building an AIR application using HTML/JS and I'm trying to work with Facebook Javascript SDK for some simple functionality.
    It seem however when running and an AIR environment I am not able to access the FB object.
    I have the SDK locally so I know its there but simple FB.init() and FB.login() are non-existent and without errors...
    I also tried using the FB AS3 library by incldeding it in <script> tags but this gives me an error
    TypeError new window.runtime.com.facebook.graph.Facebook() is not a constructor
    Don't know if its because my xml namespace is version 2.0 and not 1.5 (1.5 errors as well but it says some IFilePromise class is not found.
    Can the Javascript SDK be used in building Adobe AIR HTML apps?

    Annoyingly the SDK hasn't been updated in over three years. I've had a casual look via Visual Studio's object inspector to see if I can spot any new methods or properties that could be useful but if they are there then they are hidden well. Media Kind, for example, was introduced in iTunes 9, I think, but can't be read from code.
    I don't know what tasks you're hoping to automate, but you might find some of my scripts useful either in their own right or as food for thought.
    tt2

  • 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.

Maybe you are looking for