title: How to stay connected to facebook in an Android application
body: <p>I am working on an application where I need to integrate the social functionality of Facebook.</p>
  
  <p>In my application there is a button that connects the user to his Facebook profile.
  When the user press this button I'm only open a webview with the Facebook site, with the user Facebook page. Now lets say that I know his email and password and I want to connect him automatically, that he not have to enter his email and password every time.
  I tried to solve it throw my next <a href="https://stackoverflow.com/questions/11117516/move-to-the-facebook-application-page-after-authenticate-through-single-sign-on">question</a>, but as you can see with no success.</p>
  
  <p>I tried also persisting cookies with CookieSyncManager, CookieManager and manually handling.</p>
  
  <p>I think I can solve it by changing the url that I sends to the webView, but I don't know which url. (tried <code>http://www.facebook.com/connect/connect_to_external_page_widget_loggedin.php</code> and <code>http://www.facebook.com/plugins/login.php</code> and then concatenate the url of the user Facebook page, for example <code>http://www.facebook.com/UserProfile</code>)</p>
  
  <p>I really appreciate any help!</p>
  
  <p>Thanks. </p>