|
IE has been a real pain but I can't just shut out people using that browser. I am doing a full-page authentication page (instead of a popup which doesn't work in IE9 either). This is working and the callback is getting to me and I am using the
code to retrieve the Access Token. But when running in IE9 only the FacebookWebContext isn't filled with the AccessToken (which is successfully returned as the 'result' below):
var client = new FacebookOAuthClient(FacebookApplication.Current);
client.RedirectUri = new Uri(SiteSettings.GetAbsoluteSiteLink("/account/postoauth"));
var result = client.ExchangeCodeForAccessToken(code);
var token = FacebookWebContext.Current.AccessToken;
I assume it's failing because IE isn't passing us the cookies or something like that and that the FacebookWebContext is looking for the AUthenticaiton information and access token in the cookie. Any ideas how to get around this?
Using the facebook FB.UI to show the login popup has a problem with a blank page in IE (might be related) so I am trying to get around it by using a full-page login (which I am ok with).
Any hints would rock!
|