【发布时间】:2014-08-06 13:57:49
【问题描述】:
我无法更改共享屏幕中的参数。我想更改标题、描述和图片,请按照我的示例进行操作。
PHP:
<?php
$title = "My Title";
$description = "My Description";
$url = "http://cartolaleague.com.br";
$image = "http://cartolaleague.com.br/imagens/rodapeEscudo.png";
?>
HTML:
<a class="btn" target="_blank" href="http://www.facebook.com/sharer.php?s=100&p[title]=<?php echo urlencode( "$title" ); ?> &p[summary]=<?php echo urlencode( "$description" ) ?>&p[url]=<?php echo urlencode( "$url" ); ?>&p[images][0]=<?php echo urlencode( "$link" ); ?>">Share on Facebook</a>
【问题讨论】:
标签: php html facebook button share