我们使用 PrettyPhoto 和最新的化身 3.1.3 允许用户在模态窗口中点赞和发推文。
这很棒,但它没有工作(fb that is )。我还没有找到任何可以使用此功能的人,甚至是 PrettyPhoto 网站本身。
不管怎样,我真的很想用这个。我认为的问题是如何解析 url。
类似 iframe 按钮的 Prettyphoto js 代码是..
<iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe>
关键似乎是 {location_href}
这是正确的格式吗?在你问之前,是的,在 PrettyPhoto 支持上问过,但是很遗憾,有一大堆人问完全相同的问题而没有答案。
我认为他们使用的js是错误的。
添加:尝试了 parent_location_href 但没有正确解析,还有 parent.location_href 和所有不同的内涵..
看起来我可能必须放绝对链接是...或者我应该放网站 url 后跟 location_href
喜欢http://mydomain.com/ {location_href}