Desert Code Camp

by admin on November 6, 2009

Here, finally is the post for Desert Code Camp that I promised to make available. First off, thanks to everyone who attended my session on Integrating Facebook Connect. Secondly, please feel free to ask me questions via email, Twitter, or by commenting here.

Please feel free to download the source code. For each file in the source archive, there is an initial file and a final file. The final version of each file is the more interesting one with the FB code integrated.

In the code you’ll find usage samples for the following:

  • FB.ensureInit
  • FB.Connect.requireSession
  • FB.Connect.forceSessionRefresh
  • FB.Connect.logout
  • FB.init
  • FB_RequireFeatures
  • fb:profile-pic
  • fb:name
  • FB.Facebook.apiClient.friends_get
  • FB.XFBML.Host.parseDomTree
  • FB.Facebook.apiClient.users_getInfo
  • fb:live-stream

The demo site is still live at http://xfcg.com/fbp. For example, the page in the source archive called event-final.html is at http://xfcg.com/fbp/event-final.html.

Here are the basic steps for setting up a new Facebook Connect application:

  1. Install the Facebook Developer Application on your Facebook profile
  2. Create a new application
  3. Upload the xd_receiver file
  4. Add the FB xmlns attribute to your html tag
  5. Add the Facebook JS file
  6. Call init in your page

More information about Facebook Connect Integration is available from these other posts:

Again, please comment or message me if I’ve missed something important or if I didn’t answer your specific question. I’d love to be able to help.

Comments:

Comments on this entry are closed.