Page 1 of 1

Facebook Share button inside pano

Posted: Sat Mar 13, 2010 10:44 pm
by ricepixels
Hey guys,

Has anyone tried adding a Facebook Share button within the panorama image as a button? Such as:

http://www.facebook.com/facebook-widgets/share.php

I'm wondering if their code can be stripped and added in the skin somehow.

<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

Thanks

Re: Facebook Share button inside pano

Posted: Sun Mar 14, 2010 12:19 am
by Hopki
Try this?

Re: Facebook Share button inside pano

Posted: Sun Mar 14, 2010 12:48 am
by ricepixels
Thanks Hopki. I'm no coding expert but maybe the link needs to also use the javascript (below) or some script file to find out what page the user is on so it enters the url automatically in the Facebook Share field.


<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

I just tried adding this code to the skin you provided but my edit didn't work:

<a href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

I'm thinking this could be useful as social media can drive a lot of traffic to panos.

thanks again

Re: Facebook Share button inside pano

Posted: Sun Mar 14, 2010 1:29 am
by ricepixels
Apologies, I should have read the Facebook documentation more closely. I think I found a way. Take a look at this skin, just need to change the url and title to whatever you want to share: