Facebook Share button inside pano

Q&A about the latest versions
Post Reply
ricepixels
Posts: 20
Joined: Fri May 29, 2009 12:52 am

Sat Mar 13, 2010 10:44 pm

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
User avatar
Hopki
Gnome
Posts: 9933
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Sun Mar 14, 2010 12:19 am

Try this?
Attachments
One 1.ggsk
(533 Bytes) Downloaded 186 times
ricepixels
Posts: 20
Joined: Fri May 29, 2009 12:52 am

Sun Mar 14, 2010 12:48 am

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
ricepixels
Posts: 20
Joined: Fri May 29, 2009 12:52 am

Sun Mar 14, 2010 1:29 am

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:
Attachments
facebook.ggsk
(52.12 KiB) Downloaded 304 times
Post Reply