我需要在Facebook共享URL的末尾插入我的页面永久链接。任何帮助深表感谢。例如。 <a href="facebook.com/share.php/'<?php the_permalink(); ?>'">
不起作用。
答案 0 :(得分:2)
Facebook共享链接的格式为:
https://www.facebook.com/share.php?u={{LINK}}
因此在您的示例中为:
<a href="https://www.facebook.com/share.php?u=<?php the_permalink(); ?>">