FB.UI方法:发送显示:“弹出”在IE中保持循环 [英] FB.UI method: send display : 'popup' keeps looping in IE

查看:150
本文介绍了FB.UI方法:发送显示:“弹出”在IE中保持循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Facebook iFrame应用程序正在公司页面中显示。
在同一个iframe应用程序中,我有一个邀请按钮,我们打开FB.UI发送方法打开邀请对话框。

I have facebook iFrame app which is being displayed in company page. On same iframe app i have invite button where we open FB.UI send method to open invitation dialog.

由于上周以来的某些原因,我的发送窗口没有关闭我使用提琴手看看发生了什么,并注意到以下URL保持循环。这只发生在IE中,在所有其他浏览器中都可以正常工作。

For some reason since last week, my send window is not getting closed. I used fiddler to see what is happening and noticed that following following URL keeps looping. This happens only in IE, works fine in all other browsers.

https:// s-static。 ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f352b316971395&origin=http%3A%2F%2Fqa.xxxx.local%2Ff281b26d528cc6&relation=opener&transport=flash

这是我的代码:

<div id="fb-root">  </div>
<script type="text/javascript" src="http://connect.facebook.net/en_GB/all.js"></script>
<div class="footer">
    <br />
    <script type="text/javascript">
        FB.init({
            appId: '<%=lAppId %>',
            status: true, // check login status
            cookie: true, // enable cookies to allow the server to access the session
            xfbml: true  // parse XFBML
        });

    </script>
</div>

点击Invite按钮,我打电话跟随javascript:

I am calling following javascript on click on Invite button:

function invite() {
        var lLinkToPublish=GeAppUrl();
        var lTextToPublish=GetPublishText();
        var lTitleText=GetInvitationTitle();
       FB.ui({
              method: 'send',
              name: lTitleText,
              display: 'popup',
              description: lTextToPublish,
              link: lLinkToPublish ,
              });


    }

没有运气
Facebook php应用程序在IE中保持循环,服务器端是否有修复?

推荐答案

出来自己,张贴在这里,以帮助其他人面对类似的问题。

Figured it out myself, posting it here so that can help others facing similar issue.

原因是:

1)发送弹出窗口总是使用HTTPS打开,我正在使用 http://connect.facebook.net/en_GB/ all.js ,我不得不用 HTTPS 替换 HTTP

1) Send popup is always opened with HTTPS and i was using http://connect.facebook.net/en_GB/all.js for connect API, I had to replace HTTP with HTTPS

2)我正在使用服务器控件调用FB.UI方法。我不得不用简单的html输入法替换它。

2) I was using server control to call FB.UI method. I had to replace it with plain html Input control.

希望这有帮助。

-Imran

这篇关于FB.UI方法:发送显示:“弹出”在IE中保持循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆