sha v 4.0


Posts Tagged ‘facebook’

The Twitter

Thursday, September 10th, 2009

As some of you already know, I created a Twitter account last week. You may also know that I have, in the past, spoken poorly about Twitter and its users, so you might be curious as to why I finally drank the 140-character Kool-Aid. Well, first, I am a huge hypocrite. This should be obvious. Second, people are so crazy about Twitter that I figured there must be something huge (and awesome) that I was missing about it, so I decided to just try it out for myself and see what all the fuss is about.

It’s been about a week and 100 ‘tweets’ later, and I have to say that I still don’t really get it. Maybe I’m doing it wrong, or maybe it’s a function of how (relatively) few of my friends use Twitter vs. Facebook, but when I post the same status update on Twitter and on Facebook, without fail, I get many more responses on Facebook than on Twitter. While Facebook status updates seem like more of a conversation, Twitter updates feel much more like my update is going into the internet netherworld, never to be seen again.

Certainly being able to ‘talk’ to famous people and to read their tweets is appealing, but I can’t really imagine that this is the only draw of Twitter. What am I missing here?

Tags: ,

Facebook usernames

Saturday, June 13th, 2009

As I’m sure you’re aware, Facebook is now allowing you to choose a username for your account to allow you to easily direct people to your profile. They announced that you would be able to select a username starting at 9:01 pm on Friday. I actually forgot about it until around 10 pm Friday when I noticed some people’s status updates mentioning it, so I logged on to choose one. /shasha was unfortunately taken (as I thought it might be; it’s a weirdly popular username) so I went with the standard /shashachu, which is fine by me. This morning, I realized I could see who took /shasha, so I entered it into my browser, hoping it was at least someone awesome. Imagine my dismay when it directed me to the profile of one ultra-blonde Shannon Henderson of Orange County, whose fan pages include Adam Corolla. /cry

Tags: ,

Facebook sharing from WordPress

Sunday, May 17th, 2009

I just added a “Share on Facebook” link to each entry on my site. It’s more so I can easily post my entries to Facebook from my iPhone (no copy/paste…yet), but if you feel so inclined, you (my gentle readers) are free to use it as well.

When I was adding them, I discovered that the examples on the Facebook site don’t work quite right on WordPress index pages, because they rely on location.href and document.title, so any time you had a share link from an index page, it would link back to that index page rather than the individual entry you wanted. I fixed this by having the Javascript function take in the URL and title parameters, rather than grab them from the current page:

function fbs_click1(url, title)
{
    window.open('http://www.facebook.com/sharer.php?u='+url+'&t='+title,'sharer','toolbar=0,status=0,width=626,height=436');
    return false;
}

The link then becomes this in your index page or individual entry template:

<a title="Share this post on Facebook" onclick="return fbs_click1('<?php the_permalink();?>','<?php the_title();?>');" href="http://www.facebook.com/share.php?u=<?php the_permalink();?>" target="_blank">[link text or image]</a>

As I understand it, the reason why it’s better to put the popup code in the onclick attribute (rather than in the href attribute, e.g. <a href=”javascript:fbs_click1(…)”>) is so that browsers that do not have Javascript enabled can still use the link; it will just not be in a nice popup window.

This is all very simple, but was frustrating to do because I made a couple typos, and had to just stare at the code until I saw the problem (missing closing quote…boo). Is it even possible to debug Javascript?

Tags: , ,