I want to display like button in my android application. Below is the code I use to display a Like button in my android application.
String url = "http://www.facebook.com/plugins/like.php?layout=standard&show_faces=true&width=80&height=50&action=like&colorscheme=light&href=http://beta.demo.dy/web/service/304.htm"
webview = (WebView) findViewById(R.id.webView1);
webview.loadUrl(url);
webview.setWebViewClient(new LikeWebviewClient());
public class LikeWebviewClient extends WebViewClient {
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
}
But when I run this application it displays a white area. How to resolve this?
Facebook SDK hasn't provided like
button feature for native mobile apps( As of Oct 17 2011). It is available in Mobile Web apps.
For more info you can check out these link:
Mobile - Facebook Developers
Like Button - Facebook Developers