;(function($){
/**
* jQuery function to prevent default anchor event and take the href * and the title to make a share popup
*
* @param {[object]} e [Mouse event]
* @param {[integer]} intWidth [Popup width defalut 500]
* @param {[integer]} intHeight [Popup height defalut 400]
* @param {[boolean]} blnResize [Is popup resizeabel default true]
*/
$.fn.sharePopup = function (e, intWidth, intHeight, blnResize) {
// Prevent default anchor event
e.preventDefault();
// Set values for window
intWidth = intWidth || '500';
intHeight = intHeight || '400';
strResize = (blnResize ? 'yes' : 'no');
// Set title and open popup with focus on it
var strTitle = ((typeof this.attr('title') !== 'undefined') ? this.attr('title') : 'Social Share'),
strParam = 'width=' + intWidth + ',height=' + intHeight + ',resizable=' + strResize,
objWindow = window.open(this.attr('href'), strTitle, strParam).focus();
}
/* ================================================== */
$(document).ready(function ($) {
$('.share-popup').on("click", function(e) {
$(this).sharePopup(e);
});
});
}(jQuery));
<a class="facebook share-popup" href="https://www.facebook.com/sharer.php?u=https://site.com" title="Facebook share" target="_blank">Facebook</a>
Facebook has two methods of sharing. The "Sharer" link is simple but the preferred Facebook way is using the Share Dialog. This method does require an app id but offers more flexibility.
https://www.facebook.com/sharer.php?u={url}
https://www.facebook.com/dialog/share?app_id={app_id}&display=page&href={url}&redirect_uri={redirect_url}
https://twitter.com/intent/tweet?url={url}&text={title}&via={via}&hashtags={hashtags}
https://plus.google.com/share?url={url}
https://pinterest.com/pin/create/bookmarklet/?media={img}&url={url}&is_video={is_video}&description={title}
https://www.linkedin.com/shareArticle?url={url}&title={title}
https://buffer.com/add?text={title}&url={url}
http://digg.com/submit?url={url}&title={title}
https://www.tumblr.com/widgets/share/tool?canonicalUrl={url}&title={title}&caption={desc}
https://reddit.com/submit?url={url}&title={title}
http://www.stumbleupon.com/submit?url={url}&title={title}
https://delicious.com/save?v=5&provider={provider}&noui&jump=close&url={url}&title={title}
https://www.blogger.com/blog-this.g?u={url}&n={title}&t={desc}
http://www.livejournal.com/update.bml?subject={title}&event={url}
http://compose.mail.yahoo.com/?body={url}
http://www.newsvine.com/_tools/seed&save?u={url}
http://www.evernote.com/clip.action?url={url}
https://getpocket.com/save?url={url}
https://share.flipboard.com/bookmarklet/popout?v=2&title={title}&url={url}
http://www.instapaper.com/edit?url={url}&title={title}&description={desc}
https://lineit.line.me/share/ui?url={url}
https://web.skype.com/share?url={url}
viber://forward?text={url}
whatsapp://send?text={url}
https://telegram.me/share/url?url={url}&text={title}
http://vk.com/share.php?url={url}
https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl={url}&title={title}
http://www.douban.com/recommend/?url={url}&title={title}
http://cang.baidu.com/do/add?it={title}&iu={url}
http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={url}
https://www.xing.com/app/user?op=share&url={url}
http://widget.renren.com/dialog/share?resourceUrl={url}&srcUrl={url}&title={title}
http://service.weibo.com/share/share.php?url={url}&appkey=&title={text}&pic=&ralateUid=