如何使自定义LinkedIn分享按钮

如何使自定义LinkedIn分享按钮

本文介绍了如何使自定义LinkedIn分享按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够共享功能添加到自定义BUTTOM。我没有兴趣与,因为我不能改变LinkedIn形象出现。我想用我自己的图像LinkedIn分享按钮。

I need to be able to add sharing functionality to custom buttom. I'm not interested with their generator, as I cant change linkedin image there. I want to use my own image for linkedin share button.

推荐答案

我在寻找周围,并点击了我的回答解决方案。所以很容易的方式与LinkedIn分享:

I was searching around, and clicking for solution for my answer. So it is easy way to share with linkedin:

<一个href=\"https://www.linkedin.com/cws/share?url=http://google.com\">https://www.linkedin.com/cws/share?url=http%3A%2F%2Fgoogle.com

您只需要使用JavaScript在弹出的打开它或加载它iframe中。简单和工程 - !这就是我一直在寻找

You just need to open it in popup using JavaScript or load it to iframe. Simple and works - that's what I was looking for!

刚刚发现LinkedIn增加了更好的API共享:

Just found out that LinkedIn has added even better API for sharing:

https://developer.linkedin.com/docs/share-on-linkedin

阅读使用条款的!

使用自定义URL的方法实例链接:<一个href=\"http://www.linkedin.com/shareArticle?mini=true&url=http://stackoverflow.com/questions/10713542/how-to-make-custom-linkedin-share-button/10737122&title=How%20to%20make%20custom%20linkedin%20share%20button&summary=some%20summary%20if%20you%20want&source=stackoverflow.com\">http://www.linkedin.com/shareArticle?mini=true&url=http://stackoverflow.com/questions/10713542/how-to-make-custom-linkedin-share-button/10737122&title=How%20to%20make%20custom%20linkedin%20share%20button&summary=some%20summary%20if%20you%20want&source=stackoverflow.com

Example link using "Customized URL" method: http://www.linkedin.com/shareArticle?mini=true&url=http://stackoverflow.com/questions/10713542/how-to-make-custom-linkedin-share-button/10737122&title=How%20to%20make%20custom%20linkedin%20share%20button&summary=some%20summary%20if%20you%20want&source=stackoverflow.com

我查了,你不能真正嵌入任何视频,LinkedIn后,唯一的选择是将链接视频本身添加到页面中。

I checked that you can't really embed any video to LinkedIn post, the only option is to add the link to the page with video itself.

您可以通过将YT链接到 URL实现它参数:

You can achieve it by putting YT link into url param:

<一个href=\"http://www.linkedin.com/shareArticle?mini=true&url=http://www.youtube.com/watch?v=Iy1rumvo9xc\">http://www.linkedin.com/shareArticle?mini=true&url=http://www.youtube.com/watch?v=Iy1rumvo9xc

如果您指定摘要标题然后LinkedIn将停止从视频,如拉:

If you specify summary and title then LinkedIn will stop pulling it from the video, e.g.:

<一个href=\"http://www.linkedin.com/shareArticle?mini=true&summary=youtube&title=nike&url=http://www.youtube.com/watch?v=Iy1rumvo9xc\">http://www.linkedin.com/shareArticle?mini=true&summary=youtube&title=nike&url=http://www.youtube.com/watch?v=Iy1rumvo9xc

它工作完全与Vimeo的相同,并且将可能对任何网站工作。希望这将有助于。

It does work exactly the same with Vimeo, and probably will work for any website. Hope it will help.

这篇关于如何使自定义LinkedIn分享按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 10:18