0 Replies Latest reply on Apr 6, 2011 1:04 AM by ParvezFX

    Unable to passed on to authorization dialog box after entering username & password to my FB App?


      Hi Everybody !

      I am creating a desktop app for Facebook using Flash Builder, every thing is OK by my end but I'm unable to login and get through the access/authorization dialog box it remains on the same login box and asks again for the username & password. Am I'm still missing something ?

      The code I have used is same as I found in a Tutorial i.e. :


      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                             xmlns:mx="library://ns.adobe.com/flex/mx" currentState="Login" creationComplete="init()">
              <s:State name="Login"/>
              <s:State name="Main"/>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
                  import com.facebook.graph.FacebookDesktop;
                  import mx.logging.Log;
                  private function init():void{
                      FacebookDesktop.init("HERE_I_HAVE_USED_MY_APPID", handleLogin);
                  private function handleLogin(session:Object, fail:Object):void{
                      if(session !=null){
                          currentState = "Main";
                          userImage.source = FacebookDesktop.getImageUrl(session.uid, 'large');
                          userName.text = session.user.name;
                  private function doLogin():void{
                      FacebookDesktop.login(handleLogin, []);
                  private function doLogout():void{
                      currentState = "Login";
          <s:Button label="Login to Facebook" horizontalCenter="0" verticalCenter="0" includeIn="Login" click="doLogin()"/>
          <mx:Image includeIn="Main" left="10" top="10" height="100" id="userImage"/>
          <s:Label includeIn="Main" id="userName" left="10" top="118"/>
          <mx:LinkButton includeIn="Main" label="Logout" right="10" top="10" click="doLogout()"/>



      This is my first attempt to build a FB app


      Any HELP ???