我sharer.php
在 facebook 页面选项卡应用程序上运行了以下 facebook 脚本。在我尝试使用添加货币符号之前,共享效果很好
htmlentities(money_format("%10.2n", $numrows[price]))
有趣的是,这个分享选项和货币符号一样在页面上,并且货币符号显示正确
这是完整的代码。
<?php
$title=urlencode(''.$numrows['title'].' | '. htmlentities(money_format("%10.2n", $numrows[price])).' '.$currency_code.'');
$url=urlencode(''.$token.'');
$summary=urlencode(''.$numrows['description'].'');
$image=urlencode(''.$numrows['img1'].'');
?>
<a id="button" onClick="window.open('http://www.facebook.com/sharer.php?s=100&p[title]=<?php echo $title;?>&p[summary]=<?php echo $summary;?>&p[url]=<?php echo $url; ?>&&p[images][0]=<?php echo $image;?>', 'sharer', 'toolbar=0,status=0,width=550,height=400');" target="_parent" href="javascript: void(0)">
<input type='submit' class='btn' title='Share This Item With Friends' value='Share On Facebook'></form>
</a>
在此先感谢,这已经让我发疯了好几天了