title: How do I use the Facebook API on mobile devices?
body: <p><a href="http://developers.facebook.com/docs/guides/mobile#web">This bit of documentation</a> has not been as helpful as you might think. I understand that I have to hang a display parameter on the end of the URL, but I'm not sure how to invoke a login window like that. Here's what I have now:</p>
  
  <pre><code>&lt;script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
    // initialize the library with the API key
    FB.init({ apiKey: '{{ facebook_api_key }}', status: true, cookie: true, xfbml: true});
  
    function facebookConnect(form){
        function handleResponse(response){
            form.submit();
        }
        FB.login(handleResponse,{perms:'publish_stream,user_about_me,status_update,email,offline_access'});
    }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>This works fine in a desktop browser, but I can't figure out how to get the 'touch' or 'wap' modes for dialogs.</p>
  
  <p>I'm using django-socialregistration if that's of any relevance.</p>