2015-10-07 33 views
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> 

回答

1

好了,sharer.php解決方案仍然有效,我認爲:

或者究竟是不是工作您?對於Twitter,我認爲Tweet Web Intent可能是您的解決方案。

+0

謝謝。我現在有一切工作。我遵循了一個Crunchify教程。對於Pinterest,這個工程:'$ pinterestURL ='https://pinterest.com/pin/create/bookmarklet/?media=[post-img]&url=[post-url]&description=[post-title]'; ' – Carla

相關問題