1
我創建了簡單的圖標,可以在Facebook,Pinterest和Twitter上分享我的博客文章。 Facebook的鏈接曾經工作,但現在沒有。我不確定Pinterest使用什麼。 Twitter鏈接工作得很好,雖然我想包括我的Twitter手柄。在Facebook和Pinterest上分享博客文章的正確php鏈接是什麼?
對於如何讓Facebook鏈接工作或Pinterest使用什麼,您有什麼建議嗎?謝謝。
下面是我一直使用的是什麼:
<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="_blank"><span class="icon-facebook-1"></span></a></li>
<li><a href="http://twitter.com/home/?status=<?php the_title(); ?> - <?php the_permalink(); ?>" target="_blank""><span class="icon-twitter"></span></a></li>
謝謝。我現在有一切工作。我遵循了一個Crunchify教程。對於Pinterest,這個工程:'$ pinterestURL ='https://pinterest.com/pin/create/bookmarklet/?media=[post-img]&url=[post-url]&description=[post-title]'; ' – Carla