我想在我的Android应用程序中集成一个类似的按钮.我用过代码
likeWebView = (WebView) findViewById( R.id.webView1 );
likeWebView.getSettings().setJavaScriptEnabled(true);
String url = "http://www.facebook.com/plugins/like.php?" +
"href=" + URLEncoder.encode("likeurl" ) + "&" +
"layout=standard&" +
"show_faces=false&" +
"width=500&" +
"action=like&" +
"colorscheme=light&" +
"access_token=" + URLEncoder.encode( "read_stream" );
likeWebView.loadUrl( url );
Run Code Online (Sandbox Code Playgroud)
但登录后显示空白页面.请给我一个添加Like按钮的解决方案.
我试过这个:https://github.com/crowjdh/android-facebook-like-button-integration
但它不起作用.当用户按下我正在开发的Android应用程序按钮时,我搜索比"喜欢"更简单的东西到我的脸书页面.谢谢