gpt4 book ai didi

php - FBConnect:为什么它显示在某些页面上而不显示在其他页面上?

转载 作者:可可西里 更新时间:2023-10-31 22:41:50 24 4
gpt4 key购买 nike

在右上角,它显示在这个页面上:

http://www.thegreekmerchant.com/product/fokofpolisiekar/band-logo

但不是这个

http://www.thegreekmerchant.com/

知道为什么吗?我将 Drupal 6 与 FBConnect 模块结合使用。

最佳答案

其实问题是页面使用了不同的脚本来加载FBConnect模块。

http://www.thegreekmerchant.com/ 上:

<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId : '146943825373452',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true,
logging: '0'
});

jQuery(document).trigger('fb:init');
};

(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net//all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>

http://www.thegreekmerchant.com/product/fokofpolisiekar/band-logo 上有两个脚本,前一个和下一个:

<div id="fb-root"></div><script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId: "146943825373452",
status: true,
cookie: true,
xfbml: true
});

FB.Event.subscribe("edge.create", function(href, widget) {
_gaq.push(["_trackEvent", "Facebook like", "Drupal", href]);
});


};
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>

我用第二个脚本替换了第一个脚本,http://www.thegreekmerchant.com/ 现在可以工作了(当然不是 sharp 版本,但是在我的沙箱服务器上)。您只需要 http://www.thegreekmerchant.com/product/fokofpolisiekar/band-logo 上的第二个脚本。

关于php - FBConnect:为什么它显示在某些页面上而不显示在其他页面上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5983706/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com