Facebook connection using Flash IDE

Hi,
Ok so for many months now I have still been trying to find a decent tutorial on how to make a connection with Facebook using AS3 and the Flash IDE.
I must of tried over 50 tuts by now and none seem to work. Obviously the update of the API causes issues however I've yet to find one tutorial which actually works and can bring in profile info like name, friends list and profile pics.
Does anyone know of any tutorials showing this and how to achieve it?
p.s please don't point me to the Adobe docs or Flash API wiki as their information and documentation is out dated. I have gone through all their examples with no success.
I can only find examples for Flash Builder and maybe Flex, but I work with Flash IDE (5.5).
What I want to do is to be able to connect to FB through Adobe AIR on my iPhone. I'm pretty skilled in as3.0 and adobe air for mobile and have done several games, I just don't know how this FB works and no tutorial seems to work anymore etc.
Please, if you know how this works, can you please tell me?
Much much appreciated

I can help better if you can write the steps you followed and the places where you got stucks or errors that you see.
Here are the general steps that you need to perform.
1. Add reference to the facebook API SWC library in your project.
2. call FacebookMobile.init(APP_ID,callback);
3. In callback of init the signature is of this form private function callback(session:Object, fail:Object):void . If you get a non-null session it is of type FacebookSession and you need to check if you already have a valid acces token. to do this check if you have a valid (non-empty non-null accessToken) and expiryDate is still not elapsed. Otherwise you will need to call login method.
4. If you do not have a valid accessToken you should call FacebookMobile.login. Which will ask the end user for credentials and athunticate the user. an example call I have used is as follows
                var swv:StageWebView = new StageWebView();
                app.stage.addEventListener(Event.RESIZE,function(e:Event):void{swv.viewPort = new Rectangle(0,0,app.stage.stageWidth,app.stage.stageHeight);});   
                FacebookMobile.login(handleLogin,app.stage,['user_photos','friends_photos','user_photo_video_tags','friends_photo_video_tags'],swv);
5. in handleLogin (Signature is same as that of init callback) if session still happens to be null the login attempt is failed and you can start inspecting the fail object for reason.
6. If you get a valid session. You are all set to call the API and get the data that you want for eg. you can use something like following to get all information about the logged in user.
            var p:Object = new Object();
            p.limit = 0;
            FacebookMobile.api("/me",function(result:Object, fail:Object):void{
                if(null == fail){
                    // process result for eg. result.name, result.username, result.gender, result.first_name
                }else{
            },p);
For the different api calls (The way I have used "/me" you can visit Graph API explorer)
Please revert back for any issues that you find.
I am working on a tutorial that allows one to use the Facebook Single Sign-On Feature in order to authenticate and authorize. Read more about it here. I will release the tutorial ASAP on my blog.

Similar Messages

  • Debugging online: can't use flash ide

    I have a working website online with mysql database.
    My flash app starts there so I can't debug games locally.
    What debugging tool can I use - monster 3 - just seen it - is that a good option?
    Also it looks like you can use monster locally - what's wrong with the flash debugging tools???

    Isn-t flash builder for flex development / I only use flash professional cs4 and I don-t know anything about flex
    Date: Sun, 24 Apr 2011 11:01:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: debugging online: can't use flash ide
    I run Flash Builder all day debugging on my localhost. Works great.
    >

  • Issue using Flash IDE with Mac OS and Windows Web Service using NTLM authentication?

    I have an existing application that I developed on a Windows machine using CS5.  It uses a local intranet web service written in .NET using NTLM authentication.  The web service does multiple things such as read data from an SQL database, provide the user's username, and test for write/read access to a local company fileshare.  When my company upgraded, I went to a Mac with Flash CC which is great.  However, Mac's don't handle HTTP Authorization Challenge Blocks like Windows machines.  In Safari, Chrome, etc. it will pop up a little username and password box and proceed on without issue.  The issue is in Flash development.  When running the exact same application in Flash testing all script access fails with HTTP Status 401 errors.  I have searched the AS3 documentation, but the only thing built in to handle http challenge requests is in AIR not Flash.  The server admin's and I have tried all method's of cross domain policy files and access changes with no luck at all.  Does anyone have a solution to this issue?

    Did you check Apple Support Boot Camp article?
    iMac displays a black screen during installation of Windows 7
    http://www.apple.com/support/bootcamp/
    Installation Guide
    Instructions for all features and settings.
    Boot Camp FAQGet answers to commonly asked Boot Camp questions.
    Windows 7 FAQAnswers to commonly asked Windows 7 questions.

  • Compile .fla files without Flash IDE

    i need to know whether this can be possible or not....
    My aim is to compile bulk FLA's (say 50). can we compile .FLA's without using Flash IDE using command Line?
    If so how it can be done. please provide with an example.
    I have used JSFL concept for publishing bulk FLA's. But it will work using Flash IDE. This is not what i need.
    I need to compile or publish the FLA's using CommandLine or Batch Files.
    Please reply to the post ASAP

    I've been looking fro the same answer for quite some time, I do not think compiling without the IDE is possible ( if you absolutely need the assets from your flas, that is), I have since changed my workflow to accomodate foe this shortcoming.

  • Using Flash with Facebook Connect

    I was wondering if anyone has any information or resources on using Flash AS3 with facebook connect.  What I'm particularly looking for is how to do facebook authentication within the flash interface (so the user doesn't need to exit to the facebook website to connect) and also if there are any ways to make facebook calls from within flash once you have authenticated (rather than loading xml generated in PHP as I am currently doing).
    Any information or resources would be appreciated.

    The dial in process would be exactly the same as if you were dialing into the bridge as a participant. Most of the time it needs the following steps.
    Phone number:           800-555-5555
    Delay:                        3000 ms
    DTMF: (passcode)     123456#
    Delay:                        3000ms
    DTMF:                      1 or # (for a roll call or to join the bridge)
    However if the provider is not using a SIP compliant bridge, the Universal Voice tool will fail upon attempting to dial out.
    Also, for the hosted environment, the phone bridge must have a toll-free number.

  • How can I upload photos from ipad onto facebook whithout using adobe flash player which I could not download onto my ipad?

    How can I upload photos from ipad onto facebook whithout using adobe flash player which I could not download onto my ipad?

    http://www.google.com/search?q=upload+photos+to+facebook+from+ipad

  • Connect to Flash Player using proxy

    Notice: My English is bad, so sorry if there wrong words.
    Hi
    I'm connect to internet using proxy. and there's no problems to view webpages in browser. But when i'm trying to open a online flash game like DDTank and Gamezer Billiards it connect without problems but after playing for 5-10 minutes it tell me the connect was lose.
    I'm using Windows 7, i was using Proxifier to connect to Flash Player using proxy and there was no problems.. i can playing any Online Flash Game.
    But now, i have reinstall Windows 7 and install proxifier to connect to Flash Player again but the same problem come again!
    Before i reinstall Windows 7, i googled my problem and i have found the soultion. it's (Install Proxifier and setting it to connect to proxy server 127.0.0.1 and port xxxx) i forgot what should insert in port!
    So this is my problem i want to know how i connect to Flash Player and playing any Online Flash Game without any problems. i have try and insert random numbers in "Port" in proxifier but still the problem.
    i remember it's 9002 or something like that .. but not work maybe i forgot
    also i try to googled my problem again .. but not found that soultion was work for me. maybe i forgot what i googled exactlly.

    Any help?

  • Flash movie stealing keyboard input Facebook Connect app

    I have a Flash application that integrated Facebook friend connect. When the user initiates Facebook Friend Connect it pops up a new window that prompts the user to log into facebook.
    On internet explorer when I type in my username and password I intermittently lose key strokes. If I remove the flash page from the HTML content and do the same facebook connect on IE I don't lose the keystrokes.
    On Firefox this works completely fine.
    Is there something in flash that could be causing this behavior of intermittent keyboard focus stealing on IE?

    i would first try a different external keyboard if you have one. try other usb ports on the mbp as well. if another keyboard doesnt give you grief then you would want to go to a retail store and have them swap it out or call apple support for a replacement.

  • Use flash template for your Facebook Fan Page

    Because Facebook has changed many of their apps and pages, we must learn new methods of how to install a Facebook fanpage.
      Please click here online view PDF help , if your browser support:
      http://down.activetofocus.com/facebook/install_facebook_fan_template2.0.pdf
      You also can down the .zip file with the help pdf:
      http://down.activetofocus.com/facebook/install_facebook_fan_template2.0.zip
    Source From activetofocus team (activetofocus.com) , Thanks.

    I am interested in finding out if the text document that the Flash template uses can be modified.  These Flash templates always use a conventional text file that you can alter using Wordpad or similar.  There are references to variables such as &Name1=YourCompanyName.  You are simply supposed to go in and change the value of the company name and save the text file.  When you open the associated HTML in a browser the changes are evident.  I am not sure how this actually works?  The key is that normal folks with no Flash experience are supposed to be able to make a website from a template without using Flash software.  I made a change to the above code as follows:
    &Name1=<font face="trajan pro" color="black" size="60">Body Das</font>
    I have experimentsed with this and it accepts the font color and the font size but I never am able to get the actual font to work.  It shows up blank when I preview the HTML in a browser.  Again, not sure if there is a different font or styles tag that I could be using with the text document?

  • How do I use facebook connect with iweb?

    I am creating a Blog using iweb on my mac and I am wondering is their is a way to add facebook connect. (I have no knowledge on how to do it if its even possible) If soo could you please help.
    * you can also contact me directly at [email protected]

    I read in the  help section on Facebook which states *  video calling is no longer available to os x maverick users or the new windows system..(video calling) is un-available .... They didn't say they were working on it!  However An Apple Rep did tell me that Facebook is working around the clock to fix. I'm inclined to believe that they must be.. I have a Mac and have always had video calling in facebook.  If you go to the help section on Facebook and type in video calling, search a bit and you'll find it there. 
    I'm  praying they get it fixed soon .. That is how I contact Loved ones in England from USA... 

  • Transfer photos using SanDisk Connect Wireless flash drive

    How are photos viewed when transferred from my iPhone to a SanDisk Connect Wireless flash drive and then to my iPad or my PC. Are they placed in the camera roll like all other photos?
    are photos transferred from the device directly to the camera roll?
    are the transferred photos then native on the iPad? Or only viewed through the SanDisk device?
    once photos are transferred from iPhone to SanDisk can I transfer to the iPad and view them as if they were taken on the iPad?
    can I select ALL photos from my iPhone and transfer them ALL easily to the SanDisk and the other way around? Then transfer ALL to my iPad?

    The following quote is from the SanDisk support site: http://kb.sandisk.com/app/answers/detail/a_id/10543/session/L2F2LzEvdGltZS8xNDEw NDY4NTcxL3NpZC8xblJUYjkybQ%3D%3D
    Photo storage and location once downloaded to a mobile device from the Wireless Media Drive
    Where are photos stored once downloaded to my mobile device from the Wireless Media Drive?
    You can use the Wireless Media Drive app to download photos from the Wireless Media Drive to your mobile device.
    On an iPhone / iPad / iPod touch  (photos can be viewed in 2 locations)
    1. In the camera roll
    2. In the photos section of the Wireless Media Drive app. Select the iPhone / iPad tab at the bottom to see photos that are downloaded to your mobile device.

  • Use compiled Box2D.swc from samples in Flash IDE?

    Hi,
    I downloaded Crossbridge and compiled the sample in Example_Box2D directory. I got HelloWorld.swf and Boxes.swf which work great, but how can I use Box2D.swc library in Flash IDE? It seems to be not working there.
    What I'm trying to do is get Box2D v2.2.1 flash port to use it in Flash IDE. I know there's an existing port made with old Alchemy, but those Box2D version is 2.2.0 and I need 2.2.1. Please help, I really get stuck with this problem.

    Hi,
    I downloaded Crossbridge and compiled the sample in Example_Box2D directory. I got HelloWorld.swf and Boxes.swf which work great, but how can I use Box2D.swc library in Flash IDE? It seems to be not working there.
    What I'm trying to do is get Box2D v2.2.1 flash port to use it in Flash IDE. I know there's an existing port made with old Alchemy, but those Box2D version is 2.2.0 and I need 2.2.1. Please help, I really get stuck with this problem.

  • AMFPHP hanging in browser but not Flash IDE?

    Wrote a service that sends a bytearray to my Flash app that works perfectly fine when I test it in the Flash IDE (CS5), and when I compile the app and run it in a browser directly from my computer.
    When I load it on to the server to run in my browser, the same service hangs. Can anyone think what may be causing this?
    I tested the service in the service browser and it worked fine there as well.
    I'm really hitting a wall on this, any help would be appreciated!

    What is ncDB? Is it a remote object?
    Remote object don't have a connect method. Istead you should set the endpoint, source and destination properties.
    If you handle your requests through AS3, you could do the following. I use this code in a singleton class.
    in the constructor:
    ws.RemoteObject = new RemoteObject();
    ws.destination = "amfphp";
    ws.source = "nameOfYourService";
    ws.endPoint = "linkToYourGateway.php";
    ws.addEventListener(FaultEvent.FAULT, this.faultHandler);
    In a method named 'call':
    public function call(endPoint:String = null, serviceMethod:String, resultFunction:Function = null, ...args):void
              if (endPoint != null)
                   ws.endPoint = endPoint;
                if (resultFunction == null)
                    resultFunction = defaultResult;
                if (ws.operations.hasOwnProperty(serviceMethod))
                    ws[serviceMethod].removeEventListener(ResultEvent.RESULT, resultFunction);
                    ws[serviceMethod].removeEventListener(ResultEvent.RESULT, defaultResult);
                ws[serviceMethod].addEventListener(ResultEvent.RESULT, resultFunction);
                ws[serviceMethod].arguments = args;
                ws[serviceMethod].send();
    Does this help?
    Dany

  • Lumia 920 Facebook connection very slow over WiFi ...

    Since the Portico update the connection to Facebook both in the People and Me hub as well as in the Facebook app is very slow over WiFi, whilst still good over 4G/LTE (with WiFi off). The connection to the Nokia account also appears to have a similar problem. All other accounts and apps have good speed over both cellular and WiFi connections.
    Any ideas anybody?
    PS: FYI, a bit more info about the history and context: When I noticed the problem the first time after the update, I tried to solve it by deleting and re-adding my Facebook account on the phone. Unfortunately, that made me lose my Me hub tile, so I decided to do a full reset. That again unfortunately got stuck on the togg wheels, so I restored the phone using Nokia Care Suite with the latest firmware, and restored my accounts, apps and settings from scratch. Everythings seems to work fine now, except the above mentioned Facebook and Nokia account connectivity problem.

    Did you somehow solve this problem?
    I have the same issue here with my Lumia 920.
    However I have already found out that it only applies to my home Wifi. All other Wifi networks i was connecting to did work flawlesly.
    I need to note that all other devices on my home network are using facebook without a glitch. Only Lumia has some problems with it.

  • Your opinion - why should we (or should we not) use flash as our primary platform for video delivery?

    Hi,
    I work at a college that is delivering courses online at a
    distance. Currently, we are using a Windows Media Streaming server
    as our main platform for video. We definitely want to be able to
    stream, as our students are from all over the world and have many
    different connection speeds - from t3 all the way down to dial up.
    With Windows Media Streaming, we can configure the video at
    multiple bit rates, within a single file, to address these various
    speeds. The file is delivered at a speed appropriate to each user's
    connection. We can also choose to force authentication for any
    given fie, while still having most of our video clips available to
    anyone.
    We are currently evaluating our setup and looking into
    various options. A lot has been said about Flash. I would love to
    hear pros and cons for using flash as our primary platform. I have
    heard that one advantage to Flash is that there is a way of setting
    up your files, so that no player is needed. I would also like to
    know if that is true. I sense that it is not - I had removed flash
    from my computer, and could not play anything with a swf extension.
    As I would suspect, my computer had no idea what it was without the
    flash player installed.
    I have also heard that the concept of streaming is inherent
    within the Flash technology - that Flash files will automatically
    stream in a similar manner to our current setup, where the speed
    and flow of the delivery is dependent on the user's connection. Can
    anyone comment on that?
    Additonally, we would need a separate server, as we do not
    want anything conflicting on the server where we house our Course
    Management System. Is there anything to be aware of with this type
    of setup?
    Some of the video files that we use would need to be limited
    to a certain audience - (due to copyright and contractual issues).
    Is there a way for Flash to handle such issues? With Windows Media
    STreaming server, we can opt to have any file require a username
    and password. this requires manual addition of these credentials to
    the server though, and is not a very efficient approach.
    Please feel free to add any additional comments that you
    think might be helpful. Thanks for any information you can give me.
    Kathleen Barringer
    Excelsior College

    Welcome to the Apple community.
    You can download apps from iTunes on a computer and sync them to the mobile device.

Maybe you are looking for