title: Facebook Actionscript Graph API - Login fails (Adobe Air on IOS)
body: <p>I keep getting login failed when i sign into Facebook, below is the code.
  The onLogin callback gets called but keeps hitting trace login failed.</p>
  
  <p>I have installed the latest api, and I'm testing this on the MAC using Flash CC.</p>
  
  <p>How would i fix this?</p>
  
  <pre><code>package  {
  
  
  import flash.display.MovieClip;
  import flash.media.*;
  import flash.media.Camera;
  import flash.media.CameraUI;
  import flash.events.Event;
  import flash.events.*;  
  import flash.ui.Multitouch;
  import flash.ui.MultitouchInputMode;
  import flash.display.Sprite;
  import flash.geom.Rectangle;
  import com.facebook.graph.FacebookMobile;
  
  public class test extends MovieClip {
  
      var webView:StageWebView;
      var vidCon:Video = new Video();
      const APP_ID:String = "299210093578823";
      var extendedPermissions:Array = ["publish_stream","user_about_me"];
  
  
  
      public function test() {
          trace("djdjhdjhdfh");
          Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
          FacebookMobile.init(APP_ID, onInit);                           
          btn.addEventListener(MouseEvent.CLICK,onFBLoginClick);
      }
  
      private function onInit(success:Object, fail:Object):void
      {
          if (success)
          { 
              trace("Already logged in");
          }
          else
          {  
              //btn.enabled = true;
              trace("Not logged in-");
          }
      }
  
      private function onFBLoginClick(e:MouseEvent):void
      {
          trace("ddddd");     
          FacebookMobile.login(onLogin,this.stage, extendedPermissions,getWebView());
      }
  
      private function getWebView():StageWebView 
      { 
          if(webView) webView.dispose();
  
          webView = new StageWebView();
          webView.stage=this.stage;
          webView.assignFocus();
  
          webView.viewPort = new Rectangle(8, 8, stage.stageWidth -16, stage.stageHeight -16 );
          return webView;
      }
  
      private function onLogin(success:Object, fail:Object):void
      {
          trace("fhfhfhfhf");
          if (success)
          {
              trace("Logged In\n");
          }
          else
          {        
              trace("Login Failed\n");
          }
      }
  
  }
  
  }
  </code></pre>