简体   繁体   English

Facebook分享停止在我的网站上工作! 我需要切换为喜欢吗,还是Facebook暂时出现问题?

[英]facebook share stopped working on my site! do i need to switch over to like or is a temporary issue with facebook?

This is the code that I have that was working. 这是我正在工作的代码。

<li><a target="_blank"  onclick="product_clicks('<?php echo $product['product_id']?>')" href="http://www.facebook.com/share.php?       u=<?php echo str_replace(array("/",":"),array("%2F","%3A"),base_url()."product/details/".$product['product_id']."/".@$affiliate_id)?>"><img src="<?PHP echo base_url(); ?>images/facebook_icon.png" alt="" /></a></li>

It looks like the code is generating two http:// for the url when I attempt to switch. 当我尝试切换时,代码似乎为该网址生成了两个http://。

I wonder what changed?! 我不知道发生了什么变化?

Any suggestions ideas? 有什么建议吗?

Don't have solution, but maybe this will help a bit: I saw duplicate http (eg http://http%3A%2F%2Fwww ) when FB cannot resolve the link (eg site is down) or cannot access the page (eg page moved or removed) and tries to "fix it" 没有解决方案,但这也许会有所帮助:当FB无法解析链接(例如,站点已关闭)或无法访问页面时,我看到重复的http(例如, http:// http%3A%2F%2Fwww )。例如页面已移动或删除)并尝试“修复”

Example: http://www.facebook.com/sharer.php?u=http%3A%2F%2Fmyfakeserver%2Fno%2Fsuch%2Findex.php&t=This%20is%20not%20here 例如: http : //www.facebook.com/sharer.php?u=http%3A%2F%2Fmyfakeserver%2Fno%2Fsuch%2Findex.php&t=This%20is%20not%20here

Did you try the link your code generates in browser, minimized to "u" parameter only (ie .../sharer.php?u=)? 您是否尝试过将代码在浏览器中生成的链接(仅最小化为“ u”个参数)(即... / sharer.php?u =)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM