“发生了错误。(“An error occurred. Please try later” trying to connect to Facebook (Windows Phone/C# SDK))

编程入门 行业动态 更新时间:2024-10-27 08:37:25
发生了错误。(“An error occurred. Please try later” trying to connect to Facebook (Windows Phone/C# SDK))

((使用C#Facebook SDK))

我有一个应用程序已经工作了一段时间..几个月前,当人们开始使用Windows Phone 8设备时,有些人在尝试将应用程序连接到Facebook时遇到错误。 虽然看起来它不仅仅是一个设备而且似乎也发生在7.5个设备上,但我还是无法清楚地看到这些设备/组合发生这种情况。

有些人得到的错误是“发生错误。请再试一次。” 在输入他们的名字/ pwd之后。 我添加了一些调试代码,并且他们看到了页面内容(减去pwd),它只是一个空白页面,顶部有错误。 托管浏览器上发生的导航就是这个(取消了client_id以保护我的密钥,但我验证了它是正确的)。

首先他们得到这个:

https://www.facebook.com/dialog/oauth?response_type=token&display=touch&redirect_uri=http://www.facebook.com/connect/login_success.html&client_id=XXXXXXXXX&scope=friends_birthday,offline_access,publish_stream,user_photo_video_tags,friends_photo_video_tags,user_photos

然后他们被重定向到这导致上述错误:

https://m.facebook.com/dialog/oauth?response_type=token&display=touch&redirect_uri=http://www.facebook.com/connect/login_success.html&client_id=XXXXXXXXXX&scope=friends_birthday,offline_access,publish_stream,user_photo_video_tags,friends_photo_video_tags,user_photos


请注意,还有另一类用户正在看到不同的行为(我认为有7.5个设备)。他们转到与前一个相同的页面,然后重定向到空白页面(当我查看内容时,标题上有“错误”,但页面为空。

我无法在我的任何设备或各种模拟器(8.0 / 7.5等)上重现这一点。

有没有人知道如何调试这个?

((Using the C# Facebook SDK))

I have an app that's been working for a while now.. Since a few months ago, when people started getting Windows Phone 8 devices, some people have been getting an error when trying to connect the app to Facebook. I have not been able to get a clear repro on which devices/combo this happens for sadly, though it seems like it's more than one device and it seems to be happening on 7.5 devices as well.

The error some are getting is "An error occurred. Please try again." after putting in their name/pwd. I have added some debugging code and have the page content (minus pwd) they are seeing and it's just a blank page with the error at the top. The navigation that occurs on the hosted browsers is this (client_id replaced to protect my key, but I validated that it's correct).

First they get this:

https://www.facebook.com/dialog/oauth?response_type=token&display=touch&redirect_uri=http://www.facebook.com/connect/login_success.html&client_id=XXXXXXXXX&scope=friends_birthday,offline_access,publish_stream,user_photo_video_tags,friends_photo_video_tags,user_photos

Then they get redirected to this which gives the aforementioned error:

https://m.facebook.com/dialog/oauth?response_type=token&display=touch&redirect_uri=http://www.facebook.com/connect/login_success.html&client_id=XXXXXXXXXX&scope=friends_birthday,offline_access,publish_stream,user_photo_video_tags,friends_photo_video_tags,user_photos


Note that there's another class of users that are seeing a different behavior (those with 7.5 devices, I think).. They go to the same page as the previous ones, and then redirect to an empty page (when I look at the content, there's "error" at the title, but the page is otherwise empty.

I am unable to repro this on either of my devices or the various emulators (8.0/7.5 etc).

Does anyone have an idea on how to debug this?

最满意答案

我遇到了同样的问题,但设置不同

通过桌面浏览器登录我的网站工作,但通过手机浏览器登录失败,“发生错误,请再试一次”我在旧的(2.2)android和旧的ipod touch上看到了问题

我可以通过将用户直接发送到https://m.facebook.com/dialog/oauth ?...页面来解决问题,如果他在移动浏览器上的话。

桌面浏览器上的用户仍将发送到https://www.facebook.com/dialog/oauth ?...页面。

I am an idiot. Somehow, the app transitioned to "Sandbox mode" and thus allowed only developers to use it.

更多推荐

本文发布于:2023-08-06 00:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1441164.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:发生了   错误   occurred   error   connect

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!