Android:FBConnect 错误

发布于 2024-09-30 03:14:12 字数 2639 浏览 5 评论 0原文

我在使用 FBConnect 示例代码时收到以下错误。早些时候我使用 Facebook Rocket,但突然它开始抛出一些异常。现在,当我尝试 FBConnect 时,它也会出现一些错误:

10-28 20:32:29.779: ERROR/FBDialog(261): java.io.FileNotFoundException: http://www.facebook.com/login.php?connect_display=touch&fbconnect=1&api_key=1fb0a3d3903ac1838da1668143e64ecc&next=fbconnect%3A%2F%2Fsuccess
10-28 20:32:29.779: ERROR/FBDialog(261):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBDialog.loadURL(FBDialog.java:687)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBDialog.loadURL(FBDialog.java:647)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBLoginDialog.loadLoginPage(FBLoginDialog.java:73)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBLoginDialog.load(FBLoginDialog.java:84)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBDialog.show(FBDialog.java:609)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBLoginActivity.onCreate(FBLoginActivity.java:34)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.os.Looper.loop(Looper.java:123)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.main(ActivityThread.java:4627)
10-28 20:32:29.779: ERROR/FBDialog(261):     at java.lang.reflect.Method.invokeNative(Native Method)
10-28 20:32:29.779: ERROR/FBDialog(261):     at java.lang.reflect.Method.invoke(Method.java:521)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-28 20:32:29.779: ERROR/FBDialog(261):     at dalvik.system.NativeStart.main(Native Method)

I am getting the following error while using a sample code of FBConnect. Earlier i was using Facebook rocket, but suddenly it started throwing some exceptions. Now when i am trying FBConnect it's also giving some errors:

10-28 20:32:29.779: ERROR/FBDialog(261): java.io.FileNotFoundException: http://www.facebook.com/login.php?connect_display=touch&fbconnect=1&api_key=1fb0a3d3903ac1838da1668143e64ecc&next=fbconnect%3A%2F%2Fsuccess
10-28 20:32:29.779: ERROR/FBDialog(261):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBDialog.loadURL(FBDialog.java:687)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBDialog.loadURL(FBDialog.java:647)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBLoginDialog.loadLoginPage(FBLoginDialog.java:73)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBLoginDialog.load(FBLoginDialog.java:84)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBDialog.show(FBDialog.java:609)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.codecarpet.fbconnect.FBLoginActivity.onCreate(FBLoginActivity.java:34)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.os.Looper.loop(Looper.java:123)
10-28 20:32:29.779: ERROR/FBDialog(261):     at android.app.ActivityThread.main(ActivityThread.java:4627)
10-28 20:32:29.779: ERROR/FBDialog(261):     at java.lang.reflect.Method.invokeNative(Native Method)
10-28 20:32:29.779: ERROR/FBDialog(261):     at java.lang.reflect.Method.invoke(Method.java:521)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-28 20:32:29.779: ERROR/FBDialog(261):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-28 20:32:29.779: ERROR/FBDialog(261):     at dalvik.system.NativeStart.main(Native Method)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

浅听莫相离 2024-10-07 03:14:12

kkkkk 所以我用另一种方式做到了......
我无法解决这个问题,但有些如何使用 Android-facebook-Sdk 让它工作:

以下是下载链接,请阅读其中的“自述文件”:

http://github.com/facebook/facebook-android-sdk
< br>

希望它能帮助你Sandeep。

kkkkk So i did it by another way.....
I was not able to solve this issue but some how got it working using Android-facebook-Sdk:

Below is the link to download it, read the "Readme" file inside it:

http://github.com/facebook/facebook-android-sdk

Hope it will help you Sandeep.

后eg是否自 2024-10-07 03:14:12

The Android-facebook-sdk log with this url http://touch.facebook.com/login.php.
I do the same in the file FBLoginDialog.java, now I can connect on facebook page (it's a html page). Maybe the answer is here try to find what you need to pass or change on the request to be able to send feed.

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