Android 的 Facebook 页面就像

发布于 2024-12-27 02:48:52 字数 603 浏览 1 评论 0原文

我想在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

友欢 2025-01-03 02:48:52

首先,您必须创建 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
:)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文