Android 的 Facebook 页面就像
我想在我的 android 应用程序中喜欢一个 facebook 页面..有这方面的 API 吗?我尝试了一个代码。它最初可以工作。但现在它不工作,
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 );
请帮助我。我已经为此工作了很长时间。
i want to like a facebook page in my android app..is there any API for this?i tried a code.it was working intially.but now it is not working
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 );
please help me.I have been working on this for a long time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您必须创建 Facebook 开发者论坛帐户。然后下载 facebook API,它将包含在您的项目中。
您可以根据您的需求定制facebook API。
此网址可以帮助您http://forum.developers.facebook.net
:)
First of all u have to create facebook developer forum account. then download facebook API which ill include in your project.
You can customized the facebook API according your requirement.
This url can help you http://forum.developers.facebook.net
:)