类似按钮的弹出窗口(“弹出窗口”)不会显示在Chrome扩展中 [英] the the popup window ("flyout") of a like button doesn't show up in a chrome extension

查看:149
本文介绍了类似按钮的弹出窗口(“弹出窗口”)不会显示在Chrome扩展中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我开发的chrome扩展中的一个页面上放置一个类似的按钮。

i am trying to put a like button on a page in a chrome extension that i've developed.

我使用简单的XFBML版本:

i use the simple XFBML version:

<fb:like href="http://www.mydomain.com/page?param=1&amp;otherparam=2" send="false" layout="standard" width="400" show_faces="false" font="arial" ref="chrome_notification"></fb:like>

当然,我使用JavaScript SDK。

and of course i use the JavaScript SDK.

当我将此页面上传到我的网络服务器中时,一切正常。
,但是当我在Chrome扩展程序中运行此页面时,类似的按钮本身工作正常,但注释弹出窗口不显示。

when i upload this page into my webserver, everything works just fine. but when i run this page within my chrome extension, the like button itself works just fine, but the comment popup doesn't show.

另外 - 我在控制台中收到这些错误信息:

in addition - i get these error masseges in the console:


不安全的JavaScript尝试使用URL访问框架 chrome-extension: //eindnjdghfmigkecgibjclhdnadlnbhm/../mypage.html from frame with URL https:// www。 facebook.com/plugins/like.php?api_key= &安培; channel_url = HTTP%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23CB%3Df3d383d278%26origin% 3Dchrome扩展%253A%252F%252Feindnjdghfmigkecgibjclhdnadlnbhm%252Ff44dd2768%26relation%3Dparent.parent%26transport%3Dpostmessage&安培; extended_social_context =假安培;字体= Arial字体&安培; HREF = HTTP%3A%2F%2Fwww.mydomain.com%2F%3Fparam%3D1% 26otherparam%3D2&安培;布局= button_count&安培;语言环境= EN_US&安培; NODE_TYPE =链路&安培; REF = chrome_notification&安培; SDK =乔伊&安培; SE ND =假安培; show_faces =假安培;宽度= 400。 域,协议和端口必须匹配。

Unsafe JavaScript attempt to access frame with URL chrome-extension://eindnjdghfmigkecgibjclhdnadlnbhm/../mypage.html from frame with URL https://www.facebook.com/plugins/like.php?api_key=&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df3d383d278%26origin%3Dchrome-extension%253A%252F%252Feindnjdghfmigkecgibjclhdnadlnbhm%252Ff44dd2768%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&font=arial&href=http%3A%2F%2Fwww.mydomain.com%2F%3Fparam%3D1%26otherparam%3D2&layout=button_count&locale=en_US&node_type=link&ref=chrome_notification&sdk=joey&send=false&show_faces=false&width=400. Domains, protocols and ports must match.

和 -


不安全的JavaScript尝试使用URL访问框架 https://www.facebook.com/plugins/like.php?api_key=158698534219579&channel_url=http %3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23CB%3Df3d383d278%26origin%3Dchrome扩展%253A%252F%252Feindnjdghfmigkecgibjclhdnadlnbhm%252Ff44dd2768%26relation%3Dparent.parent%26transport%3Dpostmessage&安培; extended_social_context =假安培;字体= Arial字体&安培; HREF = HTTP%3A%2F%2Fwww.mydomain.com%2F%3Fparam%3D1%26otherparam%3D2&安培;布局= button_count&安培;语言环境= EN_US&安培; NODE_TYPE =链路&安培; REF = chrome_notification&安培; SDK = joey& send = false& show_faces = false& width = 400 from frame with URL http://www.facebook。 com / plugins / comment_widget_shell.php ?api_key =& locale = en_US& master_frame_name = f38cd100f8& sdk = joey。 s,协议和端口必须匹配。

Unsafe JavaScript attempt to access frame with URL https://www.facebook.com/plugins/like.php?api_key=158698534219579&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df3d383d278%26origin%3Dchrome-extension%253A%252F%252Feindnjdghfmigkecgibjclhdnadlnbhm%252Ff44dd2768%26relation%3Dparent.parent%26transport%3Dpostmessage&extended_social_context=false&font=arial&href=http%3A%2F%2Fwww.mydomain.com%2F%3Fparam%3D1%26otherparam%3D2&layout=button_count&locale=en_US&node_type=link&ref=chrome_notification&sdk=joey&send=false&show_faces=false&width=400 from frame with URL http://www.facebook.com/plugins/comment_widget_shell.php?api_key=&locale=en_US&master_frame_name=f38cd100f8&sdk=joey. Domains, protocols and ports must match.

任何人都可以帮我找到一个解决方案?

can anyone help me to find a solution for this?

推荐答案

可能通过与这个已知的Facebook错误有关?

Could it possibly by related to this known Facebook bug?

http://developers.facebook.com/bugs/293075054049400

基本上,如果在Facebook用户帐户上启用了安全浏览,则会遇到此问题。

Basically, one gets this behavior if secure browsing is enabled on the Facebook user's account.

这篇关于类似按钮的弹出窗口(“弹出窗口”)不会显示在Chrome扩展中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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