Modeled from the (Facebook Javascript SDK), now with the facebook-winjs-sdk you can now easily write the same code and share between your windows 8 app (winjs) and the client (Facebook Javascript SDK).