Android:FBConnect错误

时间:2010-10-28 15:12:17

标签: android fbconnect

使用FBConnect的示例代码时出现以下错误。早些时候我正在使用Facebook火箭,但突然间它开始抛出一些例外。现在,当我尝试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)

2 个答案:

答案 0 :(得分:0)

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

下面是下载它的链接,阅读里面的“自述”文件:

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

希望它能帮助你Sandeep。

答案 1 :(得分:0)

使用此网址http://touch.facebook.com/login.php的Android-facebook-sdk日志。 我在文件FBLoginDialog.java中也这样做,现在我可以在facebook页面上连接(这是一个html页面)。也许答案在这里尝试找到您需要传递或更改请求以便能够发送Feed的内容。