Facebook Share Button in Frameset

I spent a lot of time today figuring out how to get the Facebook Share Button to work in a frameset and display the frameset Url and Title instead of the Url and Title of the frame the button was placed in. I thought this should be very easy but it took me quite some time to fnd an ok solution, probably because I’m not that good at Javascript. If you know of a better solution please let me know.

Facebook Share Button original code:

<a name=”fb_share” type=”icon_link” 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>

To set url and page title to that of frameset add this after above code:

document.getElementsByName(‘fb_share’)[0].setAttribute(‘href’, ‘http://www.facebook.com/sharer.php?u=’ + escape(parent.location.href) + ‘&t=’ + escape(parent.document.title));

One problem with directing Facebook direct to the frameset url is that it cannot find Content Summary and Image but I think this can be fixed by adding some meta tags as described in Facebooks documentation.

Facebook Photos to your Windows Mobile Cell Phone

I just stumbled over this cool tool – OutSync – from Mel Sampat who’s a Windows Mobile Program Manager at Microsoft.

It allows you to sync the photos of your Facebook contacts to Outlook and then on to your Windows mobile cell phone (or other phone if you have sync software that synchronizes photos)

I always wanted to have some photos in Outlook and my phone but never really got around to trying it out. Also it would be too much work to get photos of everyone but this tool solves that quite nicely – at least if you use Facebook.

It’s easy to install and worked right away for me on my Vista and Outlook 2007 setup.

There are some things that I would like to see improved, mainly that it only matches on name so your contact has to have the exact same spelling in Outlook as in Facebook. It should be able to match on email (but I think the problem here is that the Facebook API does not allow this) or let you do a manual match. A feature that is listed as “coming soon” is birthday synchronization.

I also wish there was a similar tool for syncing Outlook and Live Messenger, but maybe there already is?