Plus Developer Resources for Code Examples and URL’s
Social media sharing buttons are essential for any website to encourage users to share your content with their friends and followers. Adding share links to your website can help drive more traffic, increase engagement, and ultimately boost conversions. In this article, we’ll provide a list of URLs that can be added to your website to create share links. Simply replace the tokens with the relevant data and you’ll be good to go.
- Telegram
- Tumblr
- Buffer
- Digg
- Mix
- VKontakte (VK)
- Scoop.it
- Slashdot
- Evernote
- Hacker News
- Instapaper
- StumbleUpon (now Mix)
- Diigo
- Delicious
- Meneame
- Plurk
- HubPages
- LiveJournal
- Blogger
- Odnoklassniki
- Yahoo Mail
- Outlook.com
- Google Bookmarks
- Line
- Qzone
- Renren
- Douban
- Baidu
Online Tool For Creating Social Share URL’s
Contains a huge list of social networks. A great utility for quickly creating new urls. Need to know how to encode a URL? Check out our article.
Having problems? Make sure that all URL’s are in the format of https://
Other Social Share Resources
Inside the Controversy: Attempting to Unravel /r/Banned’s Removal.
The removal of the Subreddit /r/Banned from Reddit has sparked a heated debate among users….
Is Reddit’s Moderation Structure Illegal? An Examination of the Current Debate.
Disclaimer: This article is intended to provide an opinion on the topic at hand. The…
The Real Motive Behind Reddit’s API Changes: A Deep Dive Into The Controversy
Opinion In April 2023, Reddit, the discussion and news aggregation website, announced its intention to…
Reddit Faces Security Breach and Ransom Demands Amid Controversial API Price Hikes
Reddit, the popular social media platform, is currently grappling with the fallout of a security…
Timeline of Reddit Controversies
Please tell me if we missed anything. Or if you have any improvements, sources, or…
The Banning of AwkwardTheTurtle from Reddit
Background and History In 2021, A focal point of these controversies has been a user…
Why You Shouldn’t Rely on WordPress Plugins
While WordPress plugins offer a convenient way to extend functionality on your website, they often come with some downsides that can impact your site’s performance. Here are a few reasons why you might want to reconsider using WordPress plugins, especially when it comes to handling social share links and development resources:
1. Increased Page Load Times: WordPress plugins, especially those with extensive features and functionalities, tend to add significant overhead to your website. They often load large CSS and JavaScript files, which can slow down your site’s loading times. This can lead to a poor user experience and higher bounce rates, as visitors are more likely to abandon a slow-loading website.
2. Plugin Conflicts and Compatibility Issues: When using multiple plugins on your website, conflicts can arise between them. Incompatible code, conflicting dependencies, or outdated plugins can cause issues that are time-consuming to diagnose and resolve. These conflicts can result in broken functionality, distorted layouts, or even site crashes.
3. Security Vulnerabilities: Plugins are a common target for hackers and malicious actors. Outdated or poorly maintained plugins can contain security vulnerabilities, making your website an easy target for attacks. Moreover, the more plugins you use, the larger the potential attack surface, increasing the risk of a security breach.
4. Maintenance and Updates: WordPress plugins require regular updates to stay compatible with the latest versions of WordPress and to patch security vulnerabilities. Managing multiple plugins and keeping them up to date can become an arduous task, especially when dealing with compatibility issues between different plugin versions.
5. Performance and Scalability: As your website grows and receives more traffic, the performance impact of WordPress plugins becomes more pronounced. Additional HTTP requests, database queries, and server-side processing can strain your resources, leading to decreased performance and scalability.
By steering clear of WordPress plugins, particularly for handling social share links and development resources, you can avoid the unnecessary bloat and potential issues they bring. Instead, leveraging a lightweight and dedicated solution, like the resource mentioned earlier, allows you to maintain a streamlined website, prioritize performance optimization, and have full control over your codebase.
Remember, always weigh the benefits against the drawbacks when deciding whether to rely on plugins or seek alternative solutions for your specific needs.
Code Examples, to Auto-Update the Link, on click.
Here’s a code snippet that you can use to achieve the desired functionality:
document.addEventListener("DOMContentLoaded", function() {
let socialLinks = document.querySelectorAll(".social_link_example");
socialLinks.forEach(link => {
link.addEventListener("click", function(event) {
event.preventDefault();
let dataHref = this.getAttribute("data-href");
let currentUrl = window.location.href;
let pageTitle = document.querySelector("h1").innerText;
let pageDescription = document.querySelector("meta[name='description']").getAttribute("content");
dataHref = dataHref.replace("%url%", encodeURIComponent(currentUrl));
dataHref = dataHref.replace("%title%", encodeURIComponent(pageTitle));
dataHref = dataHref.replace("%description%", encodeURIComponent(pageDescription));
window.open(dataHref, "_blank");
});
});
});
$(document).ready(function() {
let socialLinks = $(".social_link_example");
socialLinks.each(function() {
$(this).on("click", function(event) {
event.preventDefault();
let dataHref = $(this).attr("data-href");
let currentUrl = window.location.href;
let pageTitle = $("h1").text();
let pageDescription = $("meta[name='description']").attr("content");
dataHref = dataHref.replace("%url%", encodeURIComponent(currentUrl));
dataHref = dataHref.replace("%title%", encodeURIComponent(pageTitle));
dataHref = dataHref.replace("%description%", encodeURIComponent(pageDescription));
window.open(dataHref, "_blank");
});
});
});
document.addEventListener("DOMContentLoaded", function() {
let socialLinks: NodeListOf<HTMLElement> = document.querySelectorAll(".social_link_example");
socialLinks.forEach((link: HTMLElement) => {
link.addEventListener("click", function(event: MouseEvent) {
event.preventDefault();
let dataHref: string | null = this.getAttribute("data-href");
let currentUrl: string = window.location.href;
let pageTitle: string = document.querySelector("h1")!.innerText;
let pageDescription: string = document.querySelector("meta[name='description']")!.getAttribute("content")!;
if (dataHref) {
dataHref = dataHref.replace("%url%", encodeURIComponent(currentUrl));
dataHref = dataHref.replace("%title%", encodeURIComponent(pageTitle));
dataHref = dataHref.replace("%description%", encodeURIComponent(pageDescription));
window.open(dataHref, "_blank");
}
});
});
});
This code will add a click event listener to all elements with the class .social_link_example
. When clicked, it replaces the tokens %url%
, %title%
, and %description%
in the data-href
attribute with the current page URL, the text of the first <h1>
element on the page, and the content of the page’s meta description, respectively. Finally, it opens the share link in a new browser window.
You can customize this code to match your website’s structure and add more tokens if needed. Make sure to include this code within your HTML file or include it as an external script.
Need Icons?
See our list of Icon Packs and the Social Networks that can use them.
List of Social Networks Share URLs
https://www.facebook.com/sharer/sharer.php?u=%url%
Replace %url% with the URL of the content you want to share.
https://www.linkedin.com/shareArticle?mini=true&url=%url%&title=%title%&summary=%summary%&source=%source%
Replace %url% with the URL of the content, %title% with the title of the article, %summary% with a brief summary, and %source% with the source of the content (e.g., your website name).
https://pinterest.com/pin/create/button/?url=%url%&media=%media%&description=%description%
Replace %url% with the URL of the content, %media% with the image URL, and %description% with a brief description of the content.
https://twitter.com/intent/tweet?url=%url%&text=%text%&via=%username%&hashtags=%hashtags%
Replace %url% with the URL of the content, %text% with the tweet text, %username% with your Twitter handle, and %hashtags% with any relevant hashtags (separated by commas).
https://www.reddit.com/submit?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
https://api.whatsapp.com/send?text=%text% %url%
Replace %url% with the URL of the content and %text% with a brief message or description.
Telegram
https://telegram.me/share/url?url=%url%&text=%text%
Replace %url% with the URL of the content and %text% with a brief message or description.
Tumblr
https://www.tumblr.com/widgets/share/tool?canonicalUrl=%url%&title=%title%&caption=%caption%&tags=%tags%
Replace %url% with the URL of the content, %title% with the title of the article, %caption% with a brief caption, and %tags% with relevant tags (separated by commas).
mailto:?subject=%subject%&body=%body%%0A%url%
Replace %subject% with the email subject, %body% with the email body, and %url% with the URL of the content.
Need more? We got a page that breaks down how to build a URL for email, and there is a free tool.
https://getpocket.com/save?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
Buffer
https://buffer.com/add?text=%text%&url=%url%
Replace %text% with the pre-filled text for the post and %url% with the URL of the content.
Digg
https://digg.com/submit?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
Mix
https://mix.com/add?url=%url%
Replace %url% with the URL of the content.
VKontakte (VK)
https://vk.com/share.php?url=%url%&title=%title%&description=%description%&image=%image%&noparse=true
Replace %url% with the URL of the content, %title% with the title of the article, %description% with a brief description, and %image% with the image URL.
https://www.xing.com/spi/shares/new?url=%url%
Replace %url% with the URL of the content.
Scoop.it
https://www.scoop.it/bookmarklet?url=%url%&title=%title%¬e=%note%
Replace %url% with the URL of the content, %title% with the title of the article, and %note% with a brief note or comment.
Slashdot
https://slashdot.org/bookmark.pl?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
Evernote
https://www.evernote.com/clip.action?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
Hacker News
https://news.ycombinator.com/submitlink?u=%url%&t=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
https://share.flipboard.com/bookmarklet/popout?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
Instapaper
https://www.instapaper.com/edit?url=%url%&title=%title%&description=%description%
Replace %url% with the URL of the content, %title% with the title of the article, and %description% with a brief description.
StumbleUpon (now Mix)
http://www.stumbleupon.com/submit?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article. Note: StumbleUpon has rebranded as Mix, but the share link can still be used for sharing content.
Diigo
https://www.diigo.com/post?url=%url%&title=%title%&description=%description%
Replace %url% with the URL of the content, %title% with the title of the article, and %description% with a brief description.
Delicious
https://del.icio.us/save?url=%url%&title=%title%¬es=%notes%
Replace %url% with the URL of the content, %title% with the title of the article, and %notes% with any additional notes.
Meneame
https://www.meneame.net/submit.php?url=%url%
Replace %url% with the URL of the content.
Plurk
https://www.plurk.com/m?qualifier=shares&status=%url%
Replace %url% with the URL of the content.
HubPages
http://hubpages.com/submit?url=%url%&title=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
LiveJournal
http://www.livejournal.com/update.bml?event=%url%&subject=%title%
Replace %url% with the URL of the content and %title% with the title of the article.
Blogger
https://www.blogger.com/blog-this.g?u=%url%&n=%title%&t=%description%
Replace %url% with the URL of the content, %title% with the title of the article, and %description% with a brief description.
Odnoklassniki
https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl=%url%
Replace %url% with the URL of the content.
Yahoo Mail
http://compose.mail.yahoo.com/?body=%url%
Replace %url% with the URL of the content.
Outlook.com
https://outlook.live.com/owa/?path=/mail/action/compose&body=%url%
Replace %url% with the URL of the content.
Google Bookmarks
https://www.google.com/bookmarks/mark?op=add&bkmk=%url%&title=%title%&annotation=%description%
Replace %url% with the URL of the content, %title% with the title of the article, and %description% with a brief description.
Line
https://social-plugins.line.me/lineit/share?url=%url%
Replace %url% with the URL of the content.
Qzone
https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=%url%&title=%title%&desc=%description%&summary=&site=
Replace %url% with the URL of the content, %title% with the title of the article, and %description% with a brief description.
Renren
http://widget.renren.com/dialog/share?resourceUrl=%url%&srcUrl=%url%&title=%title%&description=%description%
Replace %url% with the URL of the content, %title% with the title of the article, and %description% with a brief description.
Douban
https://www.douban.com/share/service?href=%url%&name=%title%&text=%description%
Replace %url% with the URL of the content, %title% with the title of the article, and %description% with a brief description.
http://service.weibo.com/share/share.php?url=%url%&title=%title%&pic=&appkey=
Replace %url% with the URL of the content and %title% with the title of the article.
Baidu
http://cang.baidu.com/do/add?it=%title%&iu=%url%&fr=ien#nw=1
Replace %url% with the URL of the content and %title% with the title of the article.
Conclusion
Adding social media share links to your website can significantly increase your online presence and reach. By using the URLs provided above and replacing the tokens with your content’s specific details, you can create customized share links for your website. Ensure that you test the links to guarantee they function properly, and watch your content gain traction on social media platforms.