Displaying Facebook Profile Images with the Facebook Toolkit

I had a hankering for some code so I thought I would finish off the Facebook profile image support in the new Facebook Toolkit launching in support of the Dreamforce session, Leveraging Public Social Networks

I realized that my last few posts had been heavy on the thinking and light on the code. After working with Sandeep and Jeff on their Dreamforce session, Leveraging Public Social Networks (make sure you sign up for it, it rocks!) I had me a hankering for some development.

In support of Sandeep and Jeff’s session we will be making the new Facebook toolkit available for download. The net result was that I had to finish off the getting started article and tie up a few loose ends. One of these loose ends was write the profile image component. The good news is that the toolkit is designed well and easily supports new objects and extensions so putting the plumbing in place was pretty easy:

1. Write a Component

Components are a great practice to encapsulate your code, and make developing Visualforce pages a snap: