Facebook API Login with the login window loaded in html component

I am making an air app which utilises net based content such as bringing viewing their facebook photos within the app itself but I DON'T want my users to be able to browse to the internet or more specifically open up internet explorer. Problem is the facebook api requires the user to go to a facebook login page when the login for the facebook session is fired. Is there any way I can ghet this to open up in a html component rather than internet explorer? The facebooksession.login() seems to open up this window by default and doing the validatelogin without this seems to throw a null object reference error.
Can anybody help please? Here's my code:-
public function facebookLoginButtonClick():void{
facebookSession = new FacebookSessionUtil("blah","blah",stage.loaderInfo);
facebookSession.addEventListener(FacebookEvent.WAITING_FOR_LOGIN, facebookHandle_waitingForLogin);
facebookSession.addEventListener(FacebookEvent.CONNECT, facebookHandle_connect);
facebookSession.login();
private function facebookHandle_waitingForLogin(event:FacebookEvent):void{
var facebookAlert:Alert = Alert.show("Click OK After You've logged in to Facebook", "Logging In");
facebookAlert.addEventListener(Event.CLOSE, facebookHandle_close);
private function facebookHandle_close(event:Event):void{
facebookSession.validateLogin();
private function facebookHandle_connect(event:FacebookEvent):void{
var facebookCall:FacebookCall = facebookSession.facebook.post(new GetInfo([facebookSession.facebook.uid],['name', 'pic_square']));
facebookCall.addEventListener(FacebookEvent.COMPLETE, facebookHandle_getInfoComplete);
private function facebookHandle_getInfoComplete(event:FacebookEvent):void{
var facebookGetInfoData:GetInfoData = GetInfoData(event.data);
var facebookUser:FacebookUser = FacebookUser(facebookGetInfoData.userCollection.getItemAt(0));
facebookUserAvatar.source = facebookUser.pic_square;
facebookUsername.text = facebookUser.name;

Try this:
public function FacebookInterOp(loaderInfo) {
            session = new FacebookSessionUtil(API_KEY, SECRET, loaderInfo);
            session.addEventListener(FacebookEvent.CONNECT, onConnect);
            fbook = session.facebook;
            if (loaderInfo.parameters.fb_sig_session_key) {
                session.verifySession();
            else {
                session.login();
You'll still get the pop up when you load the program in the debugger, but when loading from Facebook it should be seamless. I hope that helps.

Similar Messages

  • I AM A CREATIVE CLOUD MEMBER FOR SOMETIME BUT NOW WHEN I LOGIN WITH THE CORRECT PASSWORD I STILL GET SIGNED OUT MESSAGE AND THEN WHEN TRIED THE SOLUTION GIVEN BY HELP THAT IS TO DELETE OPM.DB FILE OR SECOND SOLUTION INSTALL A FRESH CREATIVE CLOUD FOR DESK

    I AM A CREATIVE CLOUD MEMBER FOR SOMETIME BUT NOW WHEN I LOGIN WITH THE CORRECT PASSWORD I STILL GET SIGNED OUT MESSAGE AND THEN WHEN TRIED THE SOLUTION GIVEN BY HELP THAT IS TO DELETE OPM.DB FILE OR SECOND SOLUTION INSTALL A FRESH CREATIVE CLOUD FOR DESKTOP APP OR EVEN SOLUTION OF RUN OF IMSLIBREPLACER  IM STIILL NOT ABLE TO LOGIN TO MY CREATIVE CLOUD FOR DEKTOP APP . PLEASE HELP ME AS I NEED TO GET IN AND EXPLORE MORE OF MY DOWNLOADED S/W
    I HAVE TRIED ALL POSSIBLE SOLUTION BUT AM AMAZED HOW THIS IS HAPPENING TO ME.
    PLEASE PLEASE HELP ME .Creative Cloud Connection

    Hi Alfred,
    I would like to know the exact error message when you sign in, in the meanwhile please try the following steps assuming its Windows, let me know if its a MAC:
    1) Go to Start button>> Control panel>> Uninstall a program.
    2) Check if you see Browser safeguard there, if yes then uninstall it.
    3) Open Internet explorer>> Tools>> Internet options>> Connections>> Lan Settings>> and it should be like this.
    -Ankit

  • I want to de-install mac-excel test version and get the error message: you have not the privileges to de-install. Please login with the Mac-OS account you have installed mac-excel originally'. I don't know this account anymore. I am sysadm

    I want to de-install mac-excel test version and get the error message: 'You have not the privileges to de-install. Please login with the Mac-OS account you have installed mac-excel originally'. I don't know this account anymore. Possibly it does not exist anymore. anybody out there who can help ?

    Hi, I may suggest to activate the root account and try the uninstall process from that account. To do so, you have to:
    Go to System Preferences a open up the Users pane;
    On the left side of the pane, you shuold see Login Options;
    Enabled editing option clicking on the lock (it will ask your password);
    Once the pane is enabled, you should see something like Server Account Network (sorry my OS is in italian, so I don't exactly know the right translation), and right next to it a button;
    Click on that button, and a new pane shows up. Click on Open Directory Utility, and on the upper bar of OS X click on Edit;
    Select Enable Root Account (you can set a password, or not);
    Done that, you should log out and when the login window show up, type on the user field "root" and the password you choose;
    Theorically, from this account you will be able to unistall the application.
    After completing your task, I reccomend you to disable the root account, just by loggin in your personal account and repeating the steps I described before. Hope it helps

  • Can't Login with the User Administrator or the User root

    Today i Download the tarantella secure global desktop version 4.2.977 when finish say i can login with the username Administrator and the password of root but i can login only give me again the windows to enter username and password what can i do with this

    this is a bug with the 977 build. new build was release today to address this issue.
    http://swforum.sun.com/jive/forum.jspa?forumID=217
    as a quick workaround, copy /etc/pam.d/passwd file to /etc/pam.d/tarantella

  • Hello,when i login with the account of my wife it does not unable her music files.could you help me please?

    I have an imac osx 10.9.5 and 3,4GHz intel core i7
    When i login with the account of my wife in itunes, it does not show me the music files from her library,but only the music files from mine.
    What do i have to do?

    i mean log into iTunes Store,but i have solve this issue by myself.
    Thank you for your support.

  • HT204268; I have purchases on an aol login pre 2008 and all recent stuff under an apple id. I currently see and use everything when i login with the apple id. After March 31st will my apple id account still show and contain all?

    HT204268; I have purchases on an aol login pre 2008 and all recent stuff under an apple id. I currently see and use everything when i login with the apple id. After March 31st will my apple id account still show and contain all?
    I understand the instructions to create a new account id (apple id) from the old aol account. However, does this mean my purchases will be split into 2 accounts; or does the fact that I currently see everything under my apple id (regardless of the purchased by username) mean this will all still appear in my current account as it does now?

    You see them where when you login your non-AOL account ?
    If you currently have two accounts (the AOL username account and an email address account) then you will continue to have two accounts, and nothing should change when you update the AOL account to be an email address (apart from how you access that account).
    You will just be renaming the account to have an email address for accessing it, not creating a new account.

  • I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings?

    I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings? Please help. Thanks.

    You should have asked this before you tried: Changing username or short name- User Account and Short Name- OS X- How to change user account name or home directory name.

  • How to conf  in Hyperion, so the system couldn't login with the same user

    Hai.....
    how to configure in Hyperion, so the system couldn't login with the same user id in different machine ? (could you please provide me with detail step by step ? )
    rgds
    uka fp

    fane_j wrote:
    Sally R. wrote:
    Someone gave me a suggestion to go to the terminal and type in the following:
    ls /Users/Shared/.*.so
    This was published on MacWorld's site, and it's not a very good tip. Try this instead
    ls -la /Users/Shared/*.so
    Turns out I was wrong about that. Somebody else suggested something even more complicated and got this reply:
    By bastion
    Fri Feb 24 08:49:05 PST 2012
    PeterSParker said
    Your terminal statement has an extra "." in it that prevents it from working.
    Also, you should add the options -alR to show what is happening, and to search subdirectories.
    The revised command looks like this:
    ls -alR /Users/Shared/*.so
    The above is completely wrong. The command as shown in the article is appropriate.
    The "." is not extra and doesn't prevent the command from working. It's specifying that you're listing files that start with a period and end with ".so" with anything in between being matched.
    Because you're explicitly searching for things that start with "." you don't need the -a flag.
    Because you only care about simple existence and not any metadata you don't need -l.
    Because the files of interest are installed in /Users/Shared directly, and not subfolders thereof, you don't need -R.

  • Why can't i login with the account i just created???? I am missing an important session!!!!

    why can't i login with the account i just created???? I am missing an important session!!!!

    Hello ljp1,
    What browser are you using to log in to your brother account? It could be a problem with some settings within your browser that is giving you grief.
    Try going through these troubleshooting steps to see if it helps resolve the issue.
    http://goo.gl/TTH2s
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • I was running Lightroom 3.6 with the OS Windows XP (Sp3). The whole system crashed, I am unable to recover the serial number. I then upgraded my OS to Windows 7 (x64) and down loaded Lightroom 4.4, I wanted to buy a licence so I then upgraded to Lightroom

    I was running Lightroom 3.6 with the OS Windows XP (Sp3). The whole system crashed, I am unable to recover the serial number. I then upgraded my OS to Windows 7 (x64) and down loaded Lightroom 4.4, I wanted to buy a licence so I then upgraded to Lightroom 5, now when I try to register I am asked for the original licence/serial number. Where do I go from here??????

    If you upgraded from 3.6 to 5 (you didn't indicate buying 4.4) then you will need the serial number from 3.6 in order to be able to use 5.  If you did not keep a record of it there is a chance it might be available thru your Adobe account online, but if not, there is likely not much you can do except to return the upgrade and purchase a full version.  Try contacting support using chat and explain your situation to see if they can help.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )
    If you did purchase 4.4 then that should be sufficient to use to activate 5.
    I can never be sure what goes on with Lightroom, and the Adobe site (even when it works properly) makes finding information about products difficult these days so I am at a loss to confirm anything I say.

  • Hello, i ordered 2 32GB white iphone 4s online as a guest user. The mobiles has been delivered, but i cant print the invoice for that. They ask me to login with the apple ID. But as i mentioned i logged in as guest so there's no AppleID associated. HELP !

    Hello, i ordered 2 32GB white iphone 4s online as a guest user. The mobiles has been delivered, but i cant print the invoice for that. They ask me to login with the apple ID. But as i mentioned i logged in as guest so there's no AppleID associated. HELP !

    Contact Apple customer support via the "Contact Us" link at the bottom, they may be able to assist you.

  • My Iphone 4s ios 8.1.3 and has been upgraded to 8.2 cant login with the correct password, it is correct on pc but is read wrong in the device. also mail. help me please

    My Iphone 4s ios 8.1.3 and has been upgraded to 8.2 cant login with the correct password, it is correct on pc but is read wrong in the device. also mail. help me please

    Hi Eslam El-Gammal,
    Welcome to the Apple Support Communities!
    I understand that after resetting your iPhone, you are being prompted for Apple ID information that is not yours. This can happen if an iPhone is restored without turning off the Find My Phone feature. For more information on this, please refer to the attached article. 
    Find My iPhone Activation Lock - Apple Support
    Best regards,
    Joe

  • Can´t update pre installed iPhoto version 9.1.5 to 9.2 because in App Store is said i have to login with the ID I bought iPhoto! I did not buy iPhoto with any ID because it was already preinstalled!

    can´t update pre installed iPhoto version 9.1.5 to 9.2 because in App Store is said i have to login with the ID I bought iPhoto!
    I did not buy iPhoto with any ID because it was already preinstalled!?

    Did you try re-installing OS x Lion? That was the solution for me. Just make a back up with time machine and then restart your mac and during restart press ALT. Then you'll acces the support screen and there you can reinstall OS X lion on your macintosh HD.
    This was the solution the people from Apple support gave me and afterwards I could download the update perfectly.

  • Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'

    I want to grant permissions to all domain users to view reports on our Report Server. Domain users are able to access our Report Server URL and folder, but when they click on a report item they get an error message: 
    "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'"
    I'm using windows authentication and configured the local service account in SSReportS Config Manager as the credentials to connect to the Report Server DB. 
    Can someone please help how I should properly do this step by step to give all domain users permissions to view a report in SSRS?
    Thanks much! - Rookie DBA

    Hi IWAR,
    The error message "Cannot open database "ReportServer" requested by the login. The login failed. Login failed for user 'USER LOGON'" means the user 'USER LOGON' does not have permissions to access the "ReportServer" database.
    To fix this issue, please verify that the user has a valid database user login. For more details, please refer to the following steps.
    In SQL Server Management Studio, open Object Explorer and expand the Databases folder.
    Expand the database in which to create the new database user.
    Right-click the Security folder, point to New, and then click User.
    On the General page, enter a name for the new user in the User name box.
    In the Login name box, enter the name of a SQL Server login to map to the database user.
    Click OK.
    Reference:
    http://technet.microsoft.com/en-us/library/ms156468(v=sql.105).aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\SYSTEM

    Dear ALL 
    After successfully shifting the CRM from 2011 to 2013 i found a problem in Reporting section none of the report is working after some finding i conclude that MSCRM_FetchDataSource is not able to connect successfully 
    Through my report manager i tried to test the connection of MSCRM_FetchDataSource but i got the following error 
    System.Data.SqlClient.SqlException: Cannot open database "MSCRM_CONFIG" requested by the login. The login failed. Login failed for
    user 'NT AUTHORITY\SYSTEM'. 
    I already add the NT Authority \ System as a db_owner under my database user of MSCRM_CONFIG
    But still no success any one have any idea why it's happaning 
    Regards 
    RB

    I found a solution I hope my post will help other
    I gave the  db_owner to 'NT AUTHORITY\SYSTEM' and 'NT AUTHORITY\NETWORK' and assigned with both CRM and Config database
    It resolved my issue
    RB

Maybe you are looking for

  • Open website in app

    Hello, I would like to create an app for a website. Basically you would just tap an option in this app and desired part of the website would open inside the app. However, I have not found a way to do this, is it even possible? (The website doesn't ha

  • I cannot connect my iphone 4 to my mac pro

    Hello there... I have a mac pro 2.66 mhz DP with 5gb ram which produced in middle of 2006, i bought an iPhone 4 16gb, but i couldnt connect it to my computer. I tried to connect my iphone on Snow leopard 10.6.6 too, but i received same message as on

  • How the get most from SapScript for Adobe Printforms ?

    Hi there, I would like to know your Ideas and opinion ... about what / how can I reuse Sapscript printing report or/and layout for Adobe Printforms ... In particular my requirement is to design new PM Forms (PM_COMMON) in adobe, and Im thinking about

  • Reload iWeb project after reinstall

    I reinstalled my OS, as I do frequently to optimize computer performance. However when I now try to continue working on my iWeb project I'm stuck. I've made backups of my website folder but I can't get it to reload in iweb. Is there any way to get my

  • I am trying to add a new cd to my itunes library but itunes stops responding after 1 song completed

    I am trying to import new cd to my i tunes library.  I have windows 8 system.  After the first song imports itunes stops responding.  I have checked to ensure that itunes is allowed access through the control panel settings.  Everything else in itune