简体   繁体   English

如何配置 Facebook 点赞按钮和 LinkedIn 分享按钮

[英]How to configure Facebook like button and LinkedIn share button

Can anyone tell me how to configure Facebook like button and LinkedIn share button on a website to like a particular link on the page.谁能告诉我如何在网站上配置 Facebook 点赞按钮和 LinkedIn 分享按钮以点赞页面上的特定链接。 I don't want it to like the entire page but a link on a web page.我不希望它喜欢整个页面,而是喜欢网页上的链接。

Check out the Facebook Like Button documentation, you can specify a "URL to Like" .查看 Facebook Like Button 文档,您可以指定一个"URL to Like"

Similarly with the LinkedIn Share button , you can specify a URL.与 LinkedIn共享按钮类似,您可以指定 URL。

LinkedIn:领英:

https://www.linkedin.com/sharing/share-offsite/?url={url}

Source: Microsoft LinkedIn Share URL Documentation .来源: Microsoft LinkedIn 共享 URL 文档

Facebook: Facebook:

https://www.facebook.com/sharer.php?u={url}

Source:FaceBook Share URL Documentation .来源:FaceBook 共享 URL 文档

If you are interested in a regularly maintained GitHub project that keeps track of this so you don't have to, check it out!如果您对定期维护的 GitHub 项目感兴趣,该项目会跟踪此情况,因此您不必这样做,请查看! Social Share URLs社交分享 URL

社交分享 URL 图片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM