title: Android Webkit CookieManager: How to get all cookies via CookieManager?
body: <p>I'm trying to get cookies of <a href="http://m.facebook.com" rel="nofollow noreferrer">m.facebook.com</a> loaded in <code>android.webkit.WebView</code> via <code>CookieManager.getInstance().getCookie()</code> but it's not giving the expected results</p>
  
  <pre><code>myWebView.loadUrl("http://m.facebook.com");
  
  String cookies = CookieManager.getInstance().getCookie("m.facebook.com");
  </code></pre>
  
  <p>I want to use <code>c_user</code> field to check whether user is logged in so I can redirect to custom URL.
  Viewing cookies of <a href="http://m.facebook.com" rel="nofollow noreferrer">http://m.facebook.com</a> in Google Chrome shows many fields like:</p>
  
  <p><code>c_user
  datr
  fr
  dnonce
  m_pixel_ratio
  sb
  wd
  x-referer
  xs</code></p>
  
  <p><a href="https://i.stack.imgur.com/nijcn.png" rel="nofollow noreferrer">Google Chrome with cookies of m.facebook.com</a></p>
  
  <p>but <em>getCookie()</em> method only return <code>dnonce</code></p>
  
  <p>Help would be appriciated.</p>
  
  <p>**The scenario is I want to develop an Android app that has a single web view. When app starts I want to check if user is logged in with Facebook, if yes then redirect it to some <em>URL</em> otherwise open Facebook login page.
  To check user successful login I came up with the logic to check <code>c_user</code> (unique user id) cookie but I can't get it via <code>getCookie</code> method.</p>