【问题标题】:facebook share stopped working on my site! do i need to switch over to like or is a temporary issue with facebook?facebook 分享停止在我的网站上工作!我需要切换到喜欢还是Facebook的临时问题?
【发布时间】:2011-03-10 03:29:39
【问题描述】:

这是我正在使用的代码。

<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>

当我尝试切换时,代码似乎为 url 生成了两个 http://。

我想知道发生了什么变化?!

有什么建议吗?

【问题讨论】:

    标签: php facebook share


    【解决方案1】:

    没有解决方案,但也许这会有所帮助:当 FB 无法解析链接(例如站点关闭)或无法访问页面(例如页面移动或删除时,我看到重复的 http(例如 http://http%3A%2F%2Fwww) ) 并尝试“修复它”

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

    您是否尝试过您的代码在浏览器中生成的链接,将其最小化为仅“u”参数(即 .../sharer.php?u=)?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多