title: Facebook Login Auth using HTTP on mobile with no browser
body: <p>I'm trying to login to Facebook using a HTTP connection on mobile using these URLs:</p>
  
  <pre><code>String URL1= "https://www.facebook.com/dialog/oauth?client_id=128991357211271&amp;redirect_uri=https://www.facebook.com/connect/login_success.html&amp;scope=offline_access&amp;display=touch&amp;response_type=token";
  String URL2="http://m.facebook.com/login.php?app_id=128991357211271&amp;cancel=httpsu00253Au00252Fu00252Fwww.facebook.comu00252Fconnectu00252Flogin_success.htmlu00253Ferror_reasonu00253Duser_deniedu002526erroru00253Daccess_deniedu002526error_descriptionu00253DTheu00252Buseru00252Bdeniedu00252Byouru00252Brequest.&amp;fbconnect=1&amp;next=httpsu00253Au00252Fu00252Fwww.facebook.comu00252Fdialogu00252Fpermissions.requestu00253F_pathu00253Dpermissions.requestu002526app_idu00253D128991357211271u002526redirect_uriu00253Dhttpsu0025253Au0025252Fu0025252Fwww.facebook.comu0025252Fconnectu0025252Flogin_success.htmlu002526displayu00253Dwapu002526response_typeu00253Dtokenu002526permsu00253Doffline_accessu002526fbconnectu00253D1u002526from_loginu00253D1u002526client_idu00253D128991357211271&amp;rcount=1&amp;_rdr";
  String URL3="https://m.facebook.com/login.php?m=m&amp;amp;next=http0X1.705B00P-767%2Fm.facebook.comttpsu00253Au00252Fu00252Fwww.facebook.comu00252Fdialogu00252Fpermissions.requestu00253F_pathu00253Dpermissions.requestu002526app_idu00253D128991357211271u002526redirect_uriu00253Dhttpsu0025253Au0025252Fu0025252Fwww.facebook.comu0025252Fconnectu0025252Flogin_success.htmlu002526displayu00253Dwapu002526response_typeu00253Dtokenu002526permsu00253Doffline_accessu002526fbconnectu00253D1u002526from_loginu00253D1u002526client_idu00253D128991357211271&amp;amp;refsrc=http0X1.BDEA81P-744%2Fm.facebook.com2476350215gin.php&amp;amp;refid=9";
  String param3="email=myemail&amp;pass=mypass";
  String URL4="http://m.facebook.com/download.php?refsrc=http0X1.5C08C1P-688%2Fm.facebook.com1170gin.php&amp;amp;m_sess=R8Vnc-b9WcLHqr&amp;amp;_rdr&amp;amp;manual_redirect=1";
  </code></pre>
  
  <p>First, I try to access <code>URL1</code>, and then in the result there is a link to <code>URL2</code>
  which I then access, and so on...</p>
  
  <p>When I try to access <code>URL3</code> and post my email and pass using HTTP post, <code>URL4</code> is in the result. However, when I try to access <code>URL4</code>, the result is the same (there is a link to <code>URL4</code> again).</p>
  
  <p>When I try to open <code>URL4</code> in a web browser, it says that I have to install Facebook for mobile.</p>
  
  <p>Why does it always ask to install Facebook for mobile? Or is there a better way of how to login to Facebook using an HTTP connection only?</p>