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

Similar Messages

  • AS3 Workers in Air HTML Environment?

    Hi there,
    I've begun to look into the practicality of running AS3 workers in my JavaScript based desktop AIR project.  While I have not successfully nailed down a working implementation, it would seem that this is possible. 
    However, am I right to assume that I would not be able to leverage the WebKit HTML environment from within a worker?
    Lastly, is anyone actually using AS3 workers within a AIR HTML environment?  It seems to be an entirely unspoken feature within this context.  It it not documented because this is just not possible?
    Thanks,
    Mike

    Hi,
    I've been doing some work trying to get an AS3 worker running from the webkit enviroment and am having a really strange problem.  As soon as I start the worker, the worker starts chewing through all available CPU.  No messages are being passed, it has just been started.
    Here is an example of the worker:
    package DDX
         import flash.events.Event;
         import flash.system.MessageChannel;
         import flash.system.Worker;
         public class Worker
              private var mainToBack:MessageChannel;
              private var backToMain:MessageChannel;
              public function Worker()
                   var current:flash.system.Worker = flash.system.Worker.current;
                   mainToBack = current.getSharedProperty("mainToBack");
                   backToMain = current.getSharedProperty("backToMain");
                   mainToBack.addEventListener(Event.CHANNEL_MESSAGE, onMainToBack);
              private function onMainToBack(event:Event):void
                   if (mainToBack.messageAvailable) {
                        var msg:* = mainToBack.receive();
                        if (msg == "SOLVE") {
                             backToMain.send("SOLVED");
    And here is how I set it up in JavaScript:
    var workerLoader = new air.URLLoader(),
        mainToBack,
        backToMain,
        bgWorker,
        workerBytes;
    workerLoader.dataFormat = air.URLLoaderDataFormat.BINARY;
    workerLoader.addEventListener(air.Event.COMPLETE, function(event) {
        workerBytes = event.target.data;
        bgWorker = air.WorkerDomain.current.createWorker(workerBytes);
        mainToBack = air.Worker.current.createMessageChannel(bgWorker);
        backToMain  = bgWorker.createMessageChannel(air.Worker.current);
        backToMain.addEventListener(air.Event.CHANNEL_MESSAGE, function() {
            if (backToMain.messageAvailable) {
                var msg = backToMain.receive();
                console.log('RECEIVED ' + msg);
        }, false, 0, true);
        bgWorker.setSharedProperty("backToMain", backToMain);
        bgWorker.setSharedProperty("mainToBack", mainToBack);
        // listen for worker state changes to know when the worker is running
        bgWorker.addEventListener(air.Event.WORKER_STATE, function(e) {console.trace(e)});
    workerLoader.load(new air.URLRequest("assets/flash/DDXWorker2.swf"));
    As soon as I start the worker, CPU starts being eaten up entierly:
    bgWorker.start();
    No messages being sent via the channel, just the worker started.
    Any ideas?
    Thanks,
    Mike

  • Using Acrobat SDK for Unix development environment

    Hi,
    Can it be possible for me to use Acrobat SDK for Unix development environment as a server application??If yes, what are the things that should be installed on the client side to make sure that the client should be able see the produced PDF files?? Kindly help me in this regard..
    Deepak

    lAnubisl wrote:
    My customer's solution has several issues generating PDF files and we are looking at the Acrobat SDK as at the instance of the final truth.
    I use Interop.Acrobat.dll as a .NET project reference to open and resave PDF documents. I'd like to do all things I mentioned above.
    After years and years, I have concluded that if you do serious PDF development, you need a set of libraries. For instance, if you are doing typesetting type of work ("vertical center", "horizontal center", "margin", etc., etc) , there is an excellent library from a guy in Germany (land of Johannes Gutenberg and printing presses)...
    ... which turned out to be useless in my next project which dealt with AcroForms.
    I know exactly what you mean by "the final truth", sometimes I wish Adobe had some sort of official validating tool (like XML does).
    Per your comments, I would recommend you to consider this library. It is available in all languages and its output is the same quality as Adobe's or at least in the same league:
           http://www.pdftron.com/pdfnet/index.html
    If you want to comment further, we must go to a different forum, since we are not supposed to discuss any non-Adobe products here.

  • Using iTunes SDK in multi thread environment

    I'd like to use the Windows iTunes COM SDK in a multithread manor.
    Ex. create the iTunes COM object in thread A and use it again in thread B.
    How it the COM interface for iTunes defined (MULTITHREADED, APPERTMENT THREAD, SINGLETHREADED)
    Can I then marshall the interface, between interfaces, without deadlocking my app? (I hate frozen apps, so I use threads as much as possible).

    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

  • How to convert html to pdf using acrobat sdk 8.0?

    hi
    I am a beginner of acrobat sdk .
    I want to know How to use acrobat sdk 8.0 to convert html to pdf?
    herere some questions :
    1:How to support navigation inside PDF file that generated using acrobat sdk 8.0? For example: theres catalog in the top of HTML file, customer hopes can navigate inside the PDF file just like navigating inside the HTML file.
    2:How to support operating some controls in the PDF file that generated using acrobat sdk 8.0? For example: therere some drop down list and text box in HTML file, customer hopes can input text in the text box, click the drop down list to see available options in it just like in HTML file.
    Thanks in advance for any help and suggestion.

    Hello,
    I want a system to re-brand my 37 pages PDF for affiliates.
    I want a php dynamic link in the PDF online in order to personalize automatically the PDF for each affiliate. I need to change 2 links each time. The affiliate ID and the Paypal email (payment button) in page 36.
    Can you help?
    Please let me know
    Thank you
    Alex
    PS My system is online and i can give you the url if it helps.

  • Using Dreamweaver to create AIR app from HTML site, FLV loaded by placed SWF not loading

    Hello.
    I'm using Dreamweaver to create an HTML-based site that has pages with FLV-based videos that are loaded using a SWF file. The SWF file is just the player / skin. When I preview or publish to AIR, the videos do not show up. I'm sure others have asked how to accomplish this but I'm having difficulty finding the solution to this issue. Can someone share with them their solution please?
    Thank you!
    Robert

    Steveejay, I was having the same problem. It turns out that
    mine didn't like the fact that I was using the "POST" method in my
    loadMovie() call. I changed them to "GET", and it works fine in the
    web page now. Just doesn't work when previewing in Flash.

  • 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

  • Samsung saying we are required to submit app that was developed using Samsung SDK after July1, 2014 - End of Air for Samsung?

    I just got an email from Samsungs Seller office saying:
    1. When submitting new app in Seller Office, you are required to submit app that was developed using Samsung SDK.
    Samsung SDKs are the tools that help sellers to make apps using Samsung device-specialized functions such as S Pen, Finger Print, Gesture, Motion and more. Please visit SAMSUNG DEVELOPERS (http://developer.samsung.com/) to download Samsung SDKs and obtain additional information.
    In case of existing apps registered in Seller Office, the apps can be updated without using Samsung SDK.
    2. Samsung Seller membership will be terminated for those who registered before February 20, 2014 (GMT +09:00), but have not submitted any apps to Samsung Apps Seller Office. (Membership termination date : June 30, 201
    Does this mean we can no longer submit AIR based apps???

    For what it’s worth, we have submitted three apps to Samsung, and the combined total of the three for the last month is about half of the downloads for just the worst of the three in iTunes. So, no great loss to not submit to Samsung.
    It will affect friends of mine though, who are doing apps in conjunction with Samsung themselves. I imagine they will need to continue to submit to the Samsung store!

  • Cannot use Facebook since buying new iPad air

    CCannot use Facebook since buying new iPad air

    Although I am not a Facebook fan, and don't normally use the iWeb FTP, I decided to test this.
    I upload a site and the notification duly appeared on FB.
    In case this was a fluke, I made some changes and uploaded these..
    Then I quit and relaunched iWeb, made another change and uploaded.
    Then I had to login and delete three "posts" from Facebook.
    So, what's the problem?
    Note that I have NOT installed Lion and am still running 0S X 10.6.8  Perhaps this is a Lion issue?
    I've seen other posts about this problem but don't remember which OS was involved. There were problems a couple of years ago but these were rectified by an update.
    Given this, and the fact that FB codes are now incompatible with the HTML Snippet, if I was a facebooker, I would be looking for another app to create my websites.

  • Hello, I have a macbook air Mac OS 10.10.1 I download java because i need to use Facebook video chat, I already had java. now the computer is telling me overtime i start my computer that i need to download a java complement. what can i do?

    Hello, I have a macbook air Mac OS 10.10.1 I download java because i need to use Facebook video chat, I already had java. now the computer is telling me overtime i start my computer that i need to download a java complement. what can i do?

    Hi AnibalG,
    Thanks for the question. Based on what you stated, it seems like you need to download Java. I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    Java for OS X 2014-001
    Thanks for using Apple Support Communities.
    Cheers,
    Mario

  • AIR HTML+JavaScript app vs. hardware accelerated composing

    I'm developing an HTML application for mobiles and desktops. The application is optimized for WebKit based environment. To improve a rendering speed I'm using hardware accelerated layers (something like -webkit-transform: translateZ(0); etc...).
    This works great on my iOS devices (using PhoneGap aka Cordova to package a "native" app).
    On Windows and OS X I'm using Adobe AIR 3.5 to package a captive runtime HTML/JavaScript based application. I have found this to be the best solution (for now) even though I have tried many others (Cordova for Windows 7 / OS X, TideSDK, ...).
    The point is that the HTML rendering in Adobe AIR seems not to be hardware accelerated. Does anyone of you have experience with this? Is here any possibility to enable hardware accelerated layers in AIR HTML rendering?
    Thanks a lot

    Thanks a lot, actually I tried AIR SDK 3.6 yesterday and it seems it still doesn't support an acceleration. In a browser it works just fine even in fullscreen (zoomed page). It seems that the best way to achieve my goal will be using Cordova wrappers for OS X and Win Desktop. But as an AIR developer I really want to use AIR SDK So I will do some more tests..
    Thanks,
    Pavel

  • Flex SDK and AIR runtime version in mobile

    Hi, guys.
    I'm trying to make my first Flex mobile app.
    I'm a little confused about the relationship between Flex SDK and AIR  runtime versions for mobile development.
    In the "Developing Mobile Applications with ADOBE FLEX 4.6 and ADOBE FLASH BUILDER 4.6" pdf document, it says:
    "AIR requirements
    Flex mobile projects and ActionScript mobile projects require AIR 2.6 or a higher version. You can run mobile projects on physical devices that support AIR 2.6 or a higher version of AIR.
    You can install AIR 2.6 or a higher version only on supported Android devices that run Android 2.2 or a higher version. For the complete list of supported Android devices, see Certified Devices. Also, review the minimum system requirements to run Adobe AIR on Android devices at Mobile System Requirements.
    Note: If you do not have a device that supports AIR 2.6 or a higher version of AIR, you can use Flash Builder to launch and debug mobile applications on the desktop."
    So, I go and check the Certified devices in http://www.adobe.com/devnet-apps/flashruntimes/certified-devices.html and find that the minimun FLASH PLAYER version accepted by ALL devices is FP 10.1
    1. Does this mean that if I want to release an app to target ALL mobile devices, then I can only use Flex 4.5?
    2. Do support for Flash Player mean the same than support for Adobe AIR? Or the application will prompt the user to install whatever version of the AIR runtime and all of them would be supported by the device, even in the FLASH PLAYER support is for a lesser version?
    Thanks!

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • Anyone successfully used ODI SDK to create master repository?

    I'm just trying to compile and run the sample code given by Oracle (odi_sdk_samples.zip downloaded from http://www.oracle.com/technetwork/indexes/samplecode/dataintegration-sample-522116.html) to create a master repository, and I am running into an error below.
    java CreateMasterAndWorkRepositorySample
    oracle.odi.setup.RepositoryScriptsNotFoundException: Scripts were not found
    at oracle.odi.setup.support.MasterRepositorySetupImpl.internalCreateMaster(MasterRepositorySetupImpl.java:146)
    at oracle.odi.setup.support.MasterRepositorySetupImpl.createMasterRepository(MasterRepositorySetupImpl.java:52)
    at CreateMasterAndWorkRepositorySample.main(CreateMasterAndWorkRepositorySample.java:43)
    Caused by: java.io.FileNotFoundException: Directory /scripts/xml/ does not exist.
    at com.sunopsis.repository.manager.RepositoryManager.getRepositoryCreationXMLFilesDirectory(RepositoryManager.java:4565)
    at oracle.odi.setup.support.MasterRepositorySetupImpl.internalCreateMaster(MasterRepositorySetupImpl.java:139)
    ... 2 more
    Does anyone know how to tell JVM the location of /scripts/xml ? This happens to exist at oracledi.sdk/lib/scripts/xml under ODI installation. All I am doing to run the above program is adding all JARS from oracledi.sdk/lib to CLASSPATH and compiling this and one other file (SimpleOdiInstanceHandle.java) in the same directory. Unfortunately, there is no documentation out there on how to set up the environment properly. Apparently it is trying to get to some XML files that ODI needs to execute in order to create the master repository....
    Thank you in advance for your help.
    글 수정: user11180669

    Well hindsight is 20/20 but oraparams.sh needed to be run before running any program that uses ODI SDK. :)

  • What additional software is required in order to use adobe sdk?

    what additional software is required in order to use adobe sdk?
    thanks,
    Chub

    Definately you need development environment
    More details you can find in Acrobar SDK documentation
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/Overview_GettingStarted.3.6. html
    Regards
    Bartek

  • What IDE do I use to develop Adobe AIR applications?

    You can leverage any existing IDE that you already use for Flash, Flex, or HTML/JavaScript development. Adobe AIR does not require a specific IDE; however, Adobe AIR is integrated into Adobe Creative Suite, Flash Professional, and Flash Builder (formerly known as Flex Builder).
    We also provide a set of command line tools that allow developers to test and package AIR applications from the command line. These tools can be found in the Adobe AIR SDK.
    Basically, you can use any tool that outputs SWF or HTML files.

    Here's one.
    The thunderbolt port doubles as a Mini DisplayPort.
    Mind you, it's just an adapter. You will need an HDMI cable to span the distance from the computer to the TV.

Maybe you are looking for

  • New tabs in version 3/6/16 will not open from bar or menu or control t

    When I click New Tab on the tab bar, or click control T, a new tab will not open. This was working before I just upgraded to version 3/6/16.

  • How to get safari to recognise quicktime?

    I use safari for windows and seem unable to make certain media content play. I get the message; 'The page .... has content of MIME type "application/x-mplayer2". Because you don't have a plug-in installed....' which I believe refers to media player.

  • Compressor in FCE & FCP quick question

    Can I install the compressor from a FCP HD 4.0 disk as a stand alone application. I already have FCE on the computer I need to put a compressor on. If not, is the only way to get compressor through FC Studio? Thank you -Jon

  • Which iPhone 5C should I go for: 16GB or 32GB?

    Hello, I was wondering if it was possible to gain some advice and opinions on which memory size iPhone 5C is more suitable for my needs and is it worth getting the 32GB? On top of my contract, for £80 I can get the 16GB or for £140 I can get the 32GB

  • MOV files won't Import in Premiere Pro 1.5

    Hi I just got a Zodak zi8. When I try to import the MOV files, the importer reports a "generic error". It doesn't matter the quality of video I shoot.  HD, 720 60 frames, 720 30 frames.  It doesn't read it. They play in Quicktime, they play in Window