像按钮评论框没有显示

时间:2011-12-14 20:24:44

标签: facebook safari facebook-like

我的某个网站上有类似框的xfbml版本。所有设置都应该是正确的。问题是,根据客户的说法,在Safari(Mac)上单击“喜欢”后,评论框不会显示。更确切地说,实际的主张是,点击之后,她无法点击图库中的前3个图像。可在此处找到图库的示例:已删除

我收集的是评论框已创建,但不会显示。我已经对每个可用的浏览器进行了测试,无法复制问题。

有没有人听说过类似的问题或对可能导致此类行为的原因有所了解?如果有人在Mac上使用最新版本的Safari可以尝试并复制该问题,那将是一个额外的好处。

编辑:对于任何可能发生在这个问题并且遇到同样问题的人,解决方案是更新Facebook SDK加载脚本,如下面其他人所指出的那样。

4 个答案:

答案 0 :(得分:3)

今天,我也遇到了同样的问题,你可以尝试更改导入https://connect.facebook.net/en_US/all.js,这是HTTPS。

祝你好运。

答案 1 :(得分:1)

我能够重现点击错误。单击Like后,它就像页面一样,我无法点击前3个图像,因为Like动作直接在Like按钮下添加了一个iFrame,这个按钮是不可见的(Mac OS 10.7上的Safari 5.1.1)。此iFrame通常会显示与您的朋友分享网址的选项。跳跃有点帮助。

enter image description here

修改_: <head>标记为空,<body>标记包含以下内容:

<script>
    var onPageLoad = function() {
        document.domain = 'facebook.com';
        var loc = window.location.toString();
        var index = loc.indexOf('?');
        var qs = loc.substring(index + 1);
        var params = qs.split('&');
        var master_frame_name = '';
        for(var i in params) {
            var components = params[i].split('=');
            if(components[0] == 'master_frame_name') {
                master_frame_name = components[1];
                break;
            }
        }
        try {
            var master_frame = parent.frames[master_frame_name];
            master_frame.ExternalNodeConnectWidget.onCommentWidgetLoaded(document);
        } catch (e) {
        }
    };

</script> 

Edit2 _:是的,很多错误; - )

Unsafe JavaScript attempt to access frame with URL http://i-marbella.com/Gallery/gallery/elle-morgan-fashion-show-in-golden-goose-marbella-1 from frame with URL http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fi-marbellacom%2F232037653472920&width=200&colorscheme=dark&connections=16&stream=false&header=true&height=500. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://i-marbella.com/Gallery/gallery/elle-morgan-fashion-show-in-golden-goose-marbella-1 from frame with URL http://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://i-marbella.com/Gallery/gallery/elle-morgan-fashion-show-in-golden-goose-marbella-1 from frame with URL https://plusone.google.com/_/+1/fastbutton?url=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&size=medium&count=true&annotation=&hl=en-US&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fwidget%2F__features__%2Frt%3Dj%2Fver%3DDIroZ-_zuh0.de.%2Fsv%3D1%2Fam%3D!4EfSXeE4ZPeIc6DnWw%2Fd%3D1%2F#id=I1_1324022904362&parent=http%3A%2F%2Fi-marbella.com&rpctoken=361259257&_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://i-marbella.com/Gallery/gallery/elle-morgan-fashion-show-in-golden-goose-marbella-1 from frame with URL https://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90. Domains, protocols and ports must match.
/files/Upload/Failed to load resource: the server responded with a status of 403 (Forbidden)
Unable to post message to http://www.stumbleupon.com. Recipient has origin http://i-marbella.com.
Unsafe JavaScript attempt to access frame with URL https://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90 from frame with URL http://www.facebook.com/plugins/comment_widget_shell.php?locale=en_US&master_frame_name=f2429d9b8c&sdk=joey. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://www.facebook.com/plugins/comment_widget_shell.php?locale=en_US&master_frame_name=f2429d9b8c&sdk=joey from frame with URL https://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://www.stumbleupon.com/badge/embed/4/?url=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1 from frame with URL https://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL https://plusone.google.com/_/+1/fastbutton?url=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&size=medium&count=true&annotation=&hl=en-US&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fwidget%2F__features__%2Frt%3Dj%2Fver%3DDIroZ-_zuh0.de.%2Fsv%3D1%2Fam%3D!4EfSXeE4ZPeIc6DnWw%2Fd%3D1%2F#id=I1_1324022904362&parent=http%3A%2F%2Fi-marbella.com&rpctoken=361259257&_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe from frame with URL https://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://platform.twitter.com/widgets/tweet_button.html#_=1324022903982&_version=2&count=none&enableNewSizing=false&id=twitter-widget-0&lang=en&original_referer=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&size=m&text=Elle%20Morgan%20Fashion%20Show%20in%20Golden%20Goose%20Marbella&url=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1 from frame with URL https://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90. Domains, protocols and ports must match.
Unsafe JavaScript attempt to access frame with URL http://platform.twitter.com/widgets/hub.html from frame with URL https://www.facebook.com/plugins/like.php?channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df13f32e14%26origin%3Dhttp%253A%252F%252Fi-marbella.com%252Ff24421c7a8%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&href=http%3A%2F%2Fi-marbella.com%2FGallery%2Fgallery%2Felle-morgan-fashion-show-in-golden-goose-marbella-1&layout=button_count&locale=en_US&node_type=link&sdk=joey&show_faces=false&width=90. Domains, protocols and ports must match.

答案 2 :(得分:1)

我们遇到了同样的问题。在我们的例子中,Facebook API初始化脚本是静态加载的,这导致了问题(有人下载了脚本并将其包含在Web应用程序中)。根据{{​​3}}更改为标准动态初始化后,问题就解决了。

答案 3 :(得分:0)

这是一个已知的Facebook错误: http://developers.facebook.com/bugs/293075054049400

基本上,如果在Facebook用户的帐户上启用安全浏览,就会出现此行为。