Gossamer Forum
Home : Products : Others : Gossamer Community :

Social Media Sharing

Quote Reply
Social Media Sharing
I am looking for some type of plug in with would work with both Links and Comm for social sharing on Facebook, Google+, Twitter, and Pinterest. I figure that Andy might be the person to see this and work on this so if its possible can you let me know?
Quote Reply
Re: [LordStryfe] Social Media Sharing In reply to

Are you just wanting to offer a "share" button? If so, you could just use some Javascript. This is what I did on one of my sites:


I just do it using this bit of JS (this example uses jQuery)

// <a href="javascript:void(0);" class="shareSocial" rel="fb">
$('.shareSocial').click( function() {

var what = $(this).attr('rel');
current_title = encodeURI($(document).attr('title'));
current_href = encodeURIComponent($(location).attr('href'));

if (what == "fb") {
window.open('http://www.facebook.com/sharer.php?u=' + current_href + '&amp;t='+current_title,'mywindow','width=400,height=200,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=yes,resizable=yes');
} else if (what == "tw") {
window.open('http://twitter.com/home?status=' + current_title + ' ' + current_href,'mywindow','width=500,height=240,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=yes,resizable=yes');
} else if (what == "gp") {
} else {
alert("unknown social?");

So then in your templates you would just do something like:

<a href="javascript:void(0);" class="shareSocial" rel="fb">Share on Facebook</a> -
<a href="javascript:void(0);" class="shareSocial" rel="tw">Share on Twitter</a> -
<a href="javascript:void(0);" class="shareSocial" rel="gp">Share on Google+</a>

I havn't played around too much with Pintrests share method, so can't offer any help on that atm.

Hope that helps


Andy (mod)
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [LordStryfe] Social Media Sharing In reply to

It all depends on what kind of sharing do you need! If you are looking for your users just to be able to share the content from your site there is no need for a plugin really. You can do that with just embedding few lines of JavaScript code in your templates.

On the other hand if you need to share user activity for example when user submits link/review or save a link in his bookmarks I'm afraid not all the sites you've mentioned will allow you to do that.

It is possible only with Facebook and Twitter, the other two (Pinterest and Google+) do not provide an "write" API with such functionality ... in fact Pinterest doesn't have an API at all, so you are out of luck there, G+ on the other hand may or may not open their API for write access, as of the moment their position on that matter is "we are thinking".

I've built sharing functionality (with twitter and facebook) for one of my sites but never had the time to wrap it in to a proper plugin.
If Facebook and Twitter are enough for you and you are interested drop me a message.


Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins