Publishing with the Force.com Toolkit for Facebook

When Sandeep and I demoed the Force.com Toolkit for Facebook at Dreamforce 2010 last December the Toolkit only contained the functionality to fetch data from Facebook using the Graph API. Fortunately a number of the Force.com toolkits are available on github so if you want to fork a project and add functionality or fix a bug, you are more that welcome to! It's actually encouraged.

I've been working on a Facebook app for CloudSpokes and wanted to have the ability to publish info to Facebook. So I simply forked the the toolkit project and went to work. I just finished up writing test coverage yesterday and committed my changes to my forked version. I sent Quinton a Pull Request so that he can merge my code with the toolkit when he has time. The toolkit should come out of "beta" once the JSON parser is native on the platform. Hopefully that will be the next release (Summer 11).

Here's the functionality that I added:

  • Publish a new post on a given profile's feed/wall
  • 'Like' a given object
  • Comment on a given object
  • Publish a link on a given profile
  • Publish a note on a given profile
  • Create an event
  • Create a checkin at a location represented by a Page

It's interesting to see which projects that people are forking and potentially working on. If you'd like to contribute to one of the Force.com toolkit, hop on over to github and fork away!

Github developerforce