Facebook Connect 无法在 IE8 中运行
我在 Facebook 上设置了 2 个应用程序。一份用于开发/测试,一份用于生产。使用 Firefox,我可以连接到它们,但使用 IE8,我只能连接到开发应用程序。当我尝试连接到生产应用程序时,输入凭据后,收到以下错误消息:
MyApp 发生错误。请稍后重试。
我的开发应用程序的站点 URL 是 http://localhost:8080/test/
并且域为空。
我的生产应用程序的站点 URL 是 http://www.myapp.com。域是 myapp.com
FB.init 方法如下所示:
FB.init({
appId: '${fbApplicationId}',
status: true,
cookie: true,
xfbml: true,
channelUrl: 'http://myapp.com/xd_receiver.jsp'
});
谁能帮我解决这个问题?
I have 2 applications set up on facebook. One for development/testing and one for production. With Firefox I can connect to both of them but with IE8 I can connect only to the development app. When I try to connect to the production app, after entering the credentials, I get the following error message:
An error occurred with MyApp. Please try again later.
The site URL of my development app is http://localhost:8080/test/
and the domain is blank.
The site URL of my production app is http://www.myapp.com. and the domain is myapp.com
The FB.init method looks like this:
FB.init({
appId: '${fbApplicationId}',
status: true,
cookie: true,
xfbml: true,
channelUrl: 'http://myapp.com/xd_receiver.jsp'
});
Can anyone help me with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仔细检查 Facebook 上的侧域和站点 URL。此错误通常意味着您的站点 URL 与您尝试连接时所在的站点 URL 不同。
尝试更改 xd_receiver 的 URL,将“www.”添加为 http://www.myapp.com /xd_receiver.jsp
Double check the Side Domain and Site URL on Facebook. This error usually means your site URL is different from the one you are on while trying to connect.
Try to change the URL of the xd_receiver, add "www.", to http://www.myapp.com/xd_receiver.jsp