Category: Social


Now in twitter form!

I’m a bit reluctant to admit, but I recently joined twitter. It wouldn’t be so bad, except for the fact I’ve shitted on it in the past. Why did I make the plunge?

Well, thank you for asking.

You see, I never intended on doing so until my job had asked me to peek into the twitter API and run some tests. I needed to create an account to do so. I didn’t think much of it; I was just gonna run my tests and delete my account. But then I figured “I found such an awesome screen name (javascr1pt), I can’t put it to waste!”. [Edit, I updated it to _qwertypants cause I felt like it.]So, my ass is now on twitter. I refuse to put anything too personal like when I dropped a deuce or how amazing I can make a sandwich (which, by the way, I can). What I will do is throw magical sprinkles of programming knowledge down your gullet for you to consume.

Follow my nonsense here: http://twitter.com/_qwertypants

Advertisements

I Like You: Part 1

I, perhaps like you, has heard of a little site called Facebook. In an effort to dominate the world provide Internet users a way to share pages with their friends, they have released what they call an Open Graph protocal. This public API allows developers a new and rich way to interact with the Facebook audience (400M+).

Many popular sites have already been implementing their most popular feature: the infamous Like button. You have probably already seen this at the top or bottom of many articles; it’s the little thumbs up icon that allows readers to post the current article to their wall, thus promoting the article to their friends. The easiest way to get it on your site is by using their generator: http://developers.facebook.com/docs/reference/plugins/like.

The cool part about this is that they also offer additional meta-tag so your page can show up on search results and the users profile. Adding these optional values will really beef up your presence on Facebook (that’s a good thing). If you plan on using the  like button, you should put the extra effort to add the optional meta-tags. Doing so won’t slow down your page, it will only help people find your article easier.

FQL
Their API also offers developers the ability to query their database via Facebook Query Language (FQL). It’s pretty badass.

An example of a query would be the following:

https://api.facebook.com/method/fql.query?query=SELECT share_count, like_count, comment_count, total_count, click_count, normalized_url FROM link_stat WHERE url="http://google.com/"

This returns an XML output of the query used. This can be extremely helpful when you want to grab specific information and do cool things with it.

Stay tuned for a future post where I’ll go over how you can render your query output to a page and make it look all pretty.