Category Archives: Drupal

Drupal: Facebook-style Micropublisher v1.1 released

After four months of relatively slow development of Facebook-style Micropublisher (FBSMP), I am happy to tag the branch with 6.x-1.1 release. It might be the last release for this branch, as I would now be upgrading FBSMP to support the latest 6.x-3.x branch of Facebook-style Statuses.

A lot of cool features are coming up with this release especially in the beloved link plugin,

  1. link plugin: allow users to share links to audio sharing sites such as soundcloud, 8tracks.
  2. Repost the attachments along with status (similar to re-share and re-tweet functionality), supported by link and photo plugin.
  3. link plugin: inline editing of title and description, cool JS.
  4. link plugin: edit the title and description field of the attachment.
  5. Support for processing GET parameters in the URL.
  6. link plugin now allows to share the URL using the flink GET parameter. More…

The complete list of features and bug fixes can be found in the release notes.

I hope you enjoy creating amazing sites using the new features and share them here for the world to know how cool this module is šŸ˜‰

Google Summer of Code 2011 Announced

Do you feel passionate about any open source technology? Or you want to explore one during your summer vacations? On the top of it, if you get a mentor to guide you all along and a stipend of 5000 USD, would you beĀ interested? Yeah! Keep reading then.

GSoC 2011

GSoC 2011

Google announced its consecutive 7th year for Summer of Code program on January 24, 2011. Google Summer of Code program encourages students from all over the world to engage in open source project development of their choice for 3 months.

Look out for the details of the program here: and the timeline:

Continue reading

Drupal: Facebook-style Micropublisher

After months of hard work and support from Isaac and Thomas, I am proud to announce the first stable release of Facebook-style Micropublisher (FBSMP). FBSMP allows user to share content such as links, videos, photos and documents along with their Facebook-style Statuses. It allows you to create a social networking site similar to Twitter, Facebook, Google Buzz and others out-of-the-box. On the top, it integrates with a lot of other Drupal modules (as Activity, Trigger, Rules, Heartbeat, ImageCache, EmVideo, UserPoints, and more) which lets you do a lot more things with your website.

What’s in the box
As of today, FBSMP supports the following features:

  • Attaches content using AHAH which keeps everything smooth.
  • Publishes links, photos, videos, documents (ppt, doc, pptx, odt, etc) out of the box.
  • Extensible to publish any kind of content.
  • Integration with Activity 2, Rules, Heartbeat, Triggers/Actions, Input Filters, Views, ImageCache, Token, Application Toolbar(Appbar), Emvideo, Userpoints (through Rules), API and more.
  • Extensive developer API (including hooks) and theming methods.

It is difficult for me to elaborate on all the plugins (a plugin allows to publish one kind of content, for example Link plugin allows you to share your favorite links, Photo plugin allows you to share images on your site.), so you will have to explore them yourself. You can look at the documentation here:

How to get involved

Enjoy it with your holidays, wish you all a Merry Christmas and a great year ahead.

Note: Feature and Support requests should be made through the Facebook-style Micropublisher Forum. I may not be able to answer them here.

Drupal: Facebook-style Micropublisher Preview

I worked on the module Facebook-style Micropublisher (FBSMP) for Drupal, this summer as part of the Google Summer of Code program mentored by Isaac Sukin. This module lets users publish content (links, images, videos and documents) in a stream, along with their Facebook-style Statuses (like on Facebook, or Twitter). When I say that I worked on it as part of GSoC, it would be only partly true. I started working on it around March 2010, when I was contacted by Thomas to create a Drupal module for his site which would imitate the link share feature from Facebook, Google Buzz. I wrote the small module Facebook-style Links, which worked quite well but it was then this occurred to me, “why not create a module which can publish any content, which is extensible to publish any kind of content like images, links, videos, documents, audio, etc”.

Today, I am happy to say that Drupal now has a complete Micropublisher which can be used to create any kind of microblogging platform such as Facebook, Google Buzz, Twitter, etc. I will be posting the first release of the module soon, but before here is the small list of features and a few screenshots. Continue reading

Facebook: Bug with URL encoding

Today, while I was working on the URL encoding for the recently released Facebook-style Links module, I realized a bug with Link Attachments feature on Facebook. Before I explain, let us reproduce it:

Try to attach the following link on Facebook: This URL actually queries Google for ‘blenders&pride’. Facebook converts/encodes the above URL to which is not the same as above and queries Google for just ‘blenders’.

So, why Facebook does this? Probably Facebook tries to encode the URL to remove the characters which are not allowed by RFC 3986 and replaces them with their percent encoding. But there are certain characters which should not be encoded, such as ‘/’, ‘?’, ‘#’, ‘@’ which are the reserved characters and used as delimiters in the URL. So, it decodes these characters and converts their encoding to the original character which gives rise to the problem. Let us see an example:
Continue reading

Drupal: Tutorial for Feeds Image Grabber

Feeds Image Grabber (FIG) was released on 3rd March, and currently supports the following features:

  1. Automatically downloads and attaches image to the node created by Feeds module.
  2. Configurable XPath of the desired image location on the webpage of the feed item on per feed basis (using element’s id or CSS class).
  3. Support forĀ FileField Paths module.
  4. Configurable maximum image size.
  5. Configurable minimum and maximum image resolutions.

In this post, I will briefly demonstrate how to configure the settings for FIG to efficiently grab images for feed items.
Continue reading