Galaxy Note上的Facebook请求对话框发生常量网络错误(Constant network errors for Facebook request dialog on Galaxy Note)

Facebook的这个新的sdk(3.0)很快且非常流畅,但是在我的Samsung Note和Duos上不断发现与应用程序的网络连接错误。 它只发生在其他设备上正常工作的一些设备中。 但在我的应用程序中,我现在不断地在应用程序中发现网络连接错误。

我跳转到其他应用程序,看看我的WiFi或运营商是否有问题,但其他地方没有问题。

Facebook中的问题似乎不断发生,无法获得100次以上的对话。

几乎每次我这样做,都会出现网络问题。 我重新启动了手机,但问题找回了我的方式。

任何人遇到这种情况? 想法?

这是我正在使用的代码

Bundle params = new Bundle(); params.putString("to", friendId); params.putString("title", titleStr); params.putString("message", message); params.putString("notification_text", notificationText); params.putString("data", dataStr); params.putString("frictionless", "1"); String method = "apprequests"; dialog = new WebDialog.Builder(this, session, method, parameters) .setOnCompleteListener(this) .build(); Window dialog_window = dialog.getWindow(); dialog_window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); dialog.show();

错误消息: reportError errorCode(-1) desc(There was a network error.)

错误getMessage存在网络错误。

This new sdk (3.0) by Facebook is quick and very sleek, but on my Samsung Note and Duos continually getting network connection errors with the app. it's happening only in some devices working fine in other devices. But on my app I am now continually getting network connection errors with the app.

I jump to other apps to see if I am having an issue with my WiFi or carrier, but there's no issues anywhere else.

The problem in Facebook seems to occurs continuously, not able to get dialog at least one time out of 100 times .

Just about every time I did this, the network problem comes up. I've rebooted the phone but the problem finds its way back to me.

Anyone experiencing this? Ideas?

this is the code i am using

Bundle params = new Bundle(); params.putString("to", friendId); params.putString("title", titleStr); params.putString("message", message); params.putString("notification_text", notificationText); params.putString("data", dataStr); params.putString("frictionless", "1"); String method = "apprequests"; dialog = new WebDialog.Builder(this, session, method, parameters) .setOnCompleteListener(this) .build(); Window dialog_window = dialog.getWindow(); dialog_window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); dialog.show();

Error Message : reportError errorCode(-1) desc(There was a network error.)

error getMessage There was a network error.

最满意答案

确保您已在清单中添加了android.permission.INTERNET权限:

<uses-permission android:name="android.permission.INTERNET" />

可能有些设备正在将Facebook请求与Facebook应用程序关联起来。 对我来说这似乎很奇怪,每个设备都有所不同。 也许它与Android的版本有关?

如果您通过意向调用Facebook,则另一个选项可能会在新任务中启动。

Found solution to my question, actually it's happening when the user have more no. of friends. if user has less friends dialog able to load properly with out any errors. If the size of url exceeds ( it happens when it has more users) urls formation not completed properly. so this this error happening . Now i restricted the no of users in the url it's working fine..

更多推荐

dialog,错误,Facebook,网络,问题,电脑培训,计算机培训,IT培训"/> <meta name="desc