PDA

View Full Version : Facebook session key question



Bsbosa.com
07-16-2010, 08:33 PM
Hi

I'm using a WebBrowser control to enable users to browse Facebook, or atleast this is my goal.
Once I retrieved a Facebook session key, how do I redirect the browser to the Facebook Home page? Also, can I store a session key for each user and use this to log them in without having to prompt them for login details each time?

I retrieve the session key by directing the web browser to the url below and then intercepting this url:

browserFacebook.Navigate(@"http://www.facebook.com/login.php?api_key=" + FacebookAPIKey + @"&connect_display=popup&v=1.0&
next=http://www.facebook.com/connect/login_success.html&cancel_url=http://www.facebook.com/connect/login_failure.html&
fbconnect=true&return_session=true&session_key_only=true&req_perms=read_stream,publish_stream,offline_acces s");