Car insurance

Sharepoint and Facebook Connect: Logout

// January 22nd, 2009 // Uncategorized

Isnt wasnt long ago when googling a person or yourself wouldnt give you much unless you had a couple of web projects to your name. These days any ol Harry can google themselves and come up with some sort of Online Presence, in most cases the form of a Facebook Profile.

Not too long ago Facebook released Facebook Connect, a way of enabling your website to use Facebook as the user database. So instead of maintaining a user database, you enable people to login to facebook through your site and use their details on your website.

The idea of mysites and facebook being able to connect came to me and so i started to compile a webpart which will add your Facebook profile details to your mysite. I started to use the Facebook developer toolkit which proved really handy consolidating all the user data.

One thing which i was battling with is the logout process where the logout occurs and then there is a redirect but finally managed to put together something which i have managed to use. Here it is:

<br /> !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"<br /> head<br /> /head<br /> body<br /> script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript" /script<br /> script type="text/javascript"<br /> FB_RequireFeatures(["XFBML"], function() {<br /> FB.init('api_id','xd_receiver.html');<br /> FB.Connect.logoutAndRedirect("/******/Login.aspx?timeout=logout");<br /> });<br /> /script<br /> /body<br />

I can like it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • muti
  • Digg
  • del.icio.us
  • DZone
  • Fark
  • Fleck
  • Furl
  • Technorati

One Response to “Sharepoint and Facebook Connect: Logout”

  1. megan says:

    Hi,
    did you ever come across a ‘Unable to connect to the remote server ‘ error message when using the fdt with sharepoint? it appears to be timing out upon the getinfo() – whereas i have the same solution implemented in a simple .net (non sharepoint solution) as it works perfectly!
    Megan.

Leave a Reply