登录时出现JavaScript错误 [英] JavaScript error on logging in
问题描述
在iOS 5中,当用户尝试使用Facebook API共享链接时,系统会提示他们登录,然后生成的页面返回:
In iOS 5, when a user attempts to share a link using the Facebook API, they are prompted to log in, but then the resulting page returns this:
<script type="text/javascript"> window.location.href="fbconnect:\/\/ success#_=_";
</script>
唯一的选择是关闭窗口。如果用户第二次尝试共享一个链接,它可以工作。
The only option is to close the window. If the user then attempts to share a link a second time, it works.
任何想法如何解决?
推荐答案
我也有同样的问题。这也是iOS 4.2的一个问题。我得到的javascript有一个不同的成功声明。 Mine是
''...成功?post_id = MyFbUserID_253268854729889# = ; ...
我从2011年11月03日起使用facebook iOS SDK e9df551 。
I do have the same problem. It is an issue with iOS 4.2 as well. The javascript I get in return has a lillte different success-statement. Mine is ''... success?post_id=MyFbUserID_253268854729889#="; ...''. I do use the facebook iOS SDK e9df551 from Nov 03, 2011.
请参阅发布 Facebook Feed对话框返回一个未处理的JavaScript,包括崩溃iOS应用程序的post_id
这篇关于登录时出现JavaScript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!