I just posted this workaround for: webDialog & CURRENT GOALS "header, but there is no button to authorize or cancel
In FaceBookSDK, I changed com / facebook / widget / WebDialog.java so that as soon as the web dialog has been loaded, it will look for the block containing "Current Goals" and hide it (if it exists). Once you do this, the buttons are visible again (at least they were for me).
In com / facebook / widget / WebDialog.java:
private class DialogWebViewClient extends WebViewClient {
// ... other methods ... @Override public void onPageFinished(WebView view, String url) { super.onPageFinished(view, url); if (!isDetached) { spinner.dismiss(); } /* * Once web view is fully loaded, set the contentFrameLayout background to be transparent * and make visible the 'x' image. */ contentFrameLayout.setBackgroundColor(Color.TRANSPARENT); webView.setVisibility(View.VISIBLE); crossImageView.setVisibility(View.VISIBLE); // I don't know how to highlight in the code block // So I just add this extra long comment to make it obvious // Add a javascript call to hide that element, if it exists webView.loadUrl("javascript:try{ document.getElementById('nux-missions-bar').style.display='none'; } catch (e) {}"); // End changes }
This should help, at least until FaceBook installs the API.
source share