我有以下facebook sharer.php
腳本在Facebook頁面選項卡應用程序上運行。直到我嘗試使用使用Facebook顯示貨幣符號sharer.php
htmlentities(money_format("%10.2n", $numrows[price]))
有趣的是添加一個貨幣符號 份額的偉大工程,這個股權是一個頁面還有currecny符號上,而currecny符號可以正確顯示
這裏是完整的代碼。提前
<?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>
謝謝,這已經快把我逼瘋了數天的現在