Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 新窗口中的Facebook共享-Don';更新搜索引擎优化_Javascript_Facebook_Wordpress - Fatal编程技术网

Javascript 新窗口中的Facebook共享-Don';更新搜索引擎优化

Javascript 新窗口中的Facebook共享-Don';更新搜索引擎优化,javascript,facebook,wordpress,Javascript,Facebook,Wordpress,我为我的Facebook共享按钮使用了以下脚本: <script> function fbShare(url, title, descr, image, winWidth, winHeight) { var winTop = (screen.height / 2) - (winHeight / 2); var winLeft = (screen.width / 2) - (winWidth / 2); window.open('http://www.faceb

我为我的Facebook共享按钮使用了以下脚本:

<script>
function fbShare(url, title, descr, image, winWidth, winHeight) {
    var winTop = (screen.height / 2) - (winHeight / 2);
    var winLeft = (screen.width / 2) - (winWidth / 2);
    window.open('http://www.facebook.com/sharer.php?s=100&p[title]=' + title + '&p[summary]=' +    descr + '&p[url]=' + url + '&p[images][0]=' + image, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
}
</script>

<a href="javascript:fbShare('http://www.mywebsite.ch/subsite', 'Fb Share', 'Facebook share popup', 'http://goo.gl/dS52U', 520, 350)">Share</a>

函数fbShare(url、标题、描述、图像、winWidth、winHeight){
var winTop=(screen.height/2)-(winHeight/2);
var winLeft=(screen.width/2)-(winWidth/2);
打开窗户http://www.facebook.com/sharer.php?s=100&p[title]='+title+'&p[summary]='+descr+'&p[url]='+url+'&p[images][0]='+image',sharr',top='+winTop+',left='+winLeft+',toolbar=0,status=0,width='+winWidth+',height='+winHeight);
}
我的问题是,如果我在链接的网站上更新任何SEO,根本没有任何变化! 如果我更改URL,它会显示新的SEO

这就像是有一个缓存或者其他东西

我的网站(Wordpress):

第一个字:没有搜索引擎优化更新 第二个词:链接太长?因为子网站存在

这里是答案

将您的链接放入Facebook调试程序: 点击“获取新的刮取信息”

而且效果很好;)