This weekend has been kind of slow on the site front. Perhaps because I was not home for half of it. Perhaps because I have a bad habit of wanting to experiment immediately, instead of reading through documentation thoroughly before I start. Can't help it - I'm a firm believer in the hands-on approach. User manuals are for people who are scared of the unknown - or who don't want to feel that joy of figuring out things.

Ever since TiR has been up and integrated with facebook, I've been inviting my friends to become fans of the TiR app page on facebook. However, my friends seemed to be least interested in accepting that fan invite. At first I wondered if I had reached a new low when it comes to popularity amongst my friends. Fed up with their apparent indifference, I went on working on the site. Then the other day Niki tells me that she had suggested the page to a friend, but the person never received her invite. I dismissed it as a non-tech-savvy person probably unaware of where the invite shows up... and continued with my work, and hating my friends for being such horrible people.

This weekend I was at my cousins' place. While online from there on a lazy Saturday afternoon, I realized to my horror that

  1. the site looks like plastic surgery gone wrong in Firefox, and
  2. facebook for some retarded reason refuses to actually send out those fan invitations.
So I quietly went from hating my friends to hating facebook, if that is possible.

Since I couldn't invite people to become fans, I thought I'd create a link on the site to allow visitors to become fans from the site itself. However facebook only provides a rather bulky "fanbox" to do this. While this would normally be OK, having a large fanbox on the rather Spartan homepage kind of ruined the look. So I dived into using the facebook API to see if I could do something about it.

Unfortunately the current facebook PHP and JavaScript client APIs, although powerful, have no way to provide the "become a fan" functionality with a simple link. It seems facebook wants you to have that box on the page after all. So I started working on a way to display the fanbox only to people who are not already fans. To do this, one has to first check if the visitor is logged in to facebook. Here's the logic... and the problem I'm facing.

I was loading all the dialogues in a thin bar along the top of the page. Changing the contents of the bar before and after login was working, but I couldn't find a way to hide the fanbox once you become a fan from the site. So for now I have accepted defeat - I know, quite uncharacteristic of me, but this is too trivial a thing to warrant so much effort. So if you do want to become a fan, here's the fanbox (again) in all its glory... knock yourself out.