Facebook Controls for XPages Social Enabler on OpenNTF

Niklas Heidloff | 06:03:28 AM May 13 2011
I've created some controls to easily embed Facebook functionality in XPages applications. All controls use the Facebook JavaScript API and Facebook's HTML extension XFBML. Technically the tricky part was to add a namespace to the HTML tag but that complexity is hidden now in the SDK control.

The controls include some of the key Social Plugins that Facebook provides, e.g. the like button, send button and login button and the ability to use Facebook comments. Additionally you can you the Graph API to read from and write to Facebook.

The first screenshot shows the new controls in the palette and some of them, e.g. like button, used in an XPage:



Here is the runtime UI of that XPage:



The next screenshot shows the login button and the result of an API call to get the user's picture:



Watch this short video to see the controls in action.

I'd like to make this available soon with other new social controls in the OpenNTF Social Enabler project.


  • Comments [0]


1Henning Schmidt  5/13/2011 6:20:48 AM  Facebook Controls for XPages Social Enabler on OpenNTF

This is awesome!

Are you going to extend that so that I am able to post on someone elses wall, show my notifications, manage my friends, ...?



2Niklas Heidloff  5/13/2011 6:49:23 AM  Facebook Controls for XPages Social Enabler on OpenNTF

Thanks Henning.

Actually you can do this today with the graph API that I referenced above. I'm not sure whether we need to make it even easier to use since the graph API is already pretty straight forward.

What's missing right now is a sample showing how to use the graph API from the server. We could provide a new data source that gives you e.g. all friends from Facebook and you render them in a repeat or view control.



3Henning Schmidt  5/13/2011 9:21:40 AM  Facebook Controls for XPages Social Enabler on OpenNTF

I was not aware of the power of this API. If it is as easy as you say, and I reckon it is, then there is not need for extra efforts.

A new data source would be a great idea though!




Discussion for this entry is now closed.