Social Networking and Valentines

If you’ve been having a look at different variants of the Social Media Revolution video on YouTube you may have seen the fact that “1 out of 8 couples married in the U.S. met via Social Media” and most of them via Facebook. These figures may be much higher by now as the videos were done sometime back, whereas similar patterns are appearing elsewhere in the world as well. For example last year out of the few wedding ceremonies I have participated two of the couples have met over Facebook which makes my statistic also greater than 1 in 8.
Continue reading “Social Networking and Valentines”

Social Networking, Before Bed

Social networking, whether you like it or not has become a big part in our lives nowadays. Basically everyone is onto it. In my case, my whole family is on facebook; which explains to what extent it has affected me. So sometimes I have to be selective on what I say on Facebook as my mom’s watching me.

My Personal view is that Social Networking nowadays have gone bit more further than where it should have gone. Anyways..

Inspired by the this article on social networking becoming a nightly routine, I decided to have my own poll on social networking habits before you sleep and come up with answers. Hope you guys will help me on this.

Credits: to the tweet by @InduNan

Twitter Status on Your Blog or Website

Everyone wants to show twitter status on their website or blog. This is how that it can be done using PHP. If you are using a Blogging platform such as WordPress you can use a plug-in that supports embedding PHP code into your blog. There are many providers if you search the listings.

You can embed the following code directly into WordPress custom text area with PHP support. There are many twitter widgets available, but most support only a single user. With this you can show the status from multiple accounts. If you increase the count at the end of the URL you will need to check for multiple values inside the function. ($twitter_url)

Here Goes the Code:

function get_plain_status($username)
  $twitter_url = "$username.xml?count=1";  
  try {
    $buffer = @file_get_contents($twitter_url);
    $xml = new SimpleXMLElement($buffer);
    $status_item = $xml -> status;
    $status = $status_item -> text; 
    return "<li><a href=\"$username\">@$username</a>: $status</li>";
  } catch (Exception $e) {
    return "<li><a href=\"$username\">@$username</a></li>";
echo '<ul>';
echo get_plain_status('user_1');
echo get_plain_status('user_2');
echo get_plain_status('user_3');
echo get_plain_status('user_4');
echo '</ul>';

The twitter URL call sometimes fails due to the load at their servers. So the try-catch is used to show a default text at that time. You can put anything you want.