title: Inappbrowser callback
body: <p>I have tried to call back after login in facebook using inappbrowser. But it doesnt work to check the email,name etc.Here my code</p>
  
  <p><strong>Inappbrowser calling</strong></p>
  
  <pre><code>function onDeviceReady(){   
       var my_client_id = FBkey,
       my_redirect_uri = "http://www.fastabuy.com/index.php",
       my_type = "user_agent",
       my_display = "touch";
  
       var authorize_url = FBgraphapiurl+"/oauth/authorize?";
       authorize_url += "client_id=" + my_client_id;
       authorize_url += "&amp;redirect_uri=" + my_redirect_uri;
       authorize_url += "&amp;display=" + my_display;
       authorize_url += "&amp;scope=publish_stream,email,user_likes";
       isfir = "true";
  
       var ref = window.open(authorize_url, '_blank', 'location=yes');
       ref.addEventListener('loadstop', function facebookLocChanged() {
           facebookLoc(my_redirect_uri)
       });
  }
  </code></pre>
  
  <p>Method for checking call back</p>
  
  <pre><code>  function facebookLoc(loc){
       if (loc.indexOf("http://www.fastabuy.com/index.php?") &gt; -1){
         alert(loc.indexOf)
       }
    }
  </code></pre>
  
  <p>How to check when the url <code>loc.indexOf&gt;-1</code> to close the inappbrowser. Please help me to sort this out.</p>