Facebook Share button inside pano

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

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: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Try this?
Attachments
One 1.ggsk
(533 Bytes) Downloaded 306 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
ricepixels
Posts: 20
Joined: Fri May 29, 2009 12:52 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

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 440 times
Post Reply