[FB] Facebook API 分享 – 設定參數
官方的英文文件
http://developers.facebook.com/docs/share/
裡面有很多設定的方法,
如果要在A頁面點選分享按鈕是連到B頁面的化,可使用
share_url 屬性,
例如我在a.php嵌入分享鈕要連到b.php
就設定
<a href='http://www.facebook.com/sharer.php' name='fb_share' type='button_count' share_url="b.php">
分享
</a>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/></script>
<a href='http://www.facebook.com/sharer.php' name='fb_share' type='button_count' share_url="b.php">
分享
</a>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/></script>