title: Facebook like in android
body: <p>I am using the code shown below for like a url in facebook:</p>
  
  <pre><code>String htmlCodeGoesHere="&lt;div id=\"fb-root\"&gt;&lt;/div&gt;"+
              "&lt;script&gt;(function(d, s, id) {"+
              "  var js, fjs = d.getElementsByTagName(s)[0];"+
              "  if (d.getElementById(id)) {return;}"+
               " js = d.createElement(s); js.id = id;"+
               " js.src = \"http://connect.facebook.net/en_US/all.js#xfbml=1&amp; appId="+APP_ID+"\";"+
               " fjs.parentNode.insertBefore(js, fjs);"+
              "}(document, 'script', 'facebook-jssdk'));&lt;/script&gt;"+
              "&lt;div class=\"fb-like\" data-href=\" http://www.facebook.com/ToshibaInnovation\" data-send=\"false\" data-width=\"450\" data-show-faces=\"true\"&gt;   &lt;/div&gt;";
              webviewliketoshiba.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
              webviewliketoshiba.setBackgroundColor(Color.WHITE);
  
  
              webviewliketoshiba.setWebChromeClient(new WebChromeClient() {
  
                  @Override
                  public boolean onJsAlert(WebView view, String url, String message, final android.webkit.JsResult result) {
                      Log.e("js ", message);
                      return false;
                  }
              });
  
              webviewliketoshiba.loadDataWithBaseURL(null, htmlCodeGoesHere, "text/html", "UTF_8", null);
  </code></pre>
  
  <p>This is showing like button in a web view. I am using OnTouchListener for web view to take particular actions after like. But click on like button it opens browser window with no contents. And not able to get response for like a page.</p>
  
  <p>Can anyone help me to do like functionality. I need response for like a facebook page. I have a valid facebook session and tocken. by getting positive responce from like a url, i can control my other codes.</p>