title: facebook like on webview android shows blank screen after login
body: <p>I utilize the facebook html like for my app to open a webview like this <a href="https://developers.facebook.com/docs/plugins/like-button/" rel="nofollow">https://developers.facebook.com/docs/plugins/like-button/</a></p>
  
  <p>The webview shows a Like and Share button, but after I login to facebook, it doesnt return to the Like and Share button, but a blank page, the share button works fine. </p>
  
  <p>So how do I return to the facebook like url after logging in?</p>
  
  <pre><code>public class LikeFacebookActivity extends BaseActivity {
  
      private WebView webView;
      private final String URL = "facebookIDhere";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.like_facebook_webview);
  
          webView = (WebView) findViewById(R.id.webView1);
          webView.getSettings().setJavaScriptEnabled(true);
          webView.getSettings().setAppCacheEnabled(true);
          webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
  
          showLoading();
          webView.setWebViewClient(new MyWebViewClient());
  
          webView.loadUrl(URL);
  
  
          ActionBar actionbar = getActionBar();
          actionbar.setCustomView(R.layout.actionbar_top_like_facebook);
          actionbar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
  
          Button backButton = (Button) findViewById(R.id.buttonGeneralBack);
  
          backButton.setOnClickListener(new OnClickListener() {
              @Override
              public void onClick(View v) {
                  onBackPressed();
              }
          });
      }
  
      @Override
      public void onBackPressed() {
          finish();
          overridePendingTransition(R.anim.animation_slide_from_left,
                  R.anim.animation_slide_to_right);
      }
  
      public class MyWebViewClient extends WebViewClient {
          @Override
          public boolean shouldOverrideUrlLoading(WebView view, String url) {         
              if(url.contains("something")) return true;
              return false; 
          }
          public void onPageFinished(WebView view, String url) {
              hideLoading();
          }
      }
  
  }
  </code></pre>