Sep 26, 2011 at 2:26 PM
Edited Sep 26, 2011 at 2:29 PM
I've just implemented PIN-based authentication in my Silverlight application, but I keep getting the error 'Invalid / expired Token'.
I am using the latest build (92759) and Silverlight 5 RC.
I've followed the examples and, using the async approach, can successfully authenticate a user via the PIN method. I then serialise the AccessToken and OAuthToken strings to Isolated Storage. This all works and I have checked on Twitter that the authentication
has actually been successful.
When I then ask Twitter for a users' Followers I get the error. I am creating my TwitterContext in the following way...
var auth = new SingleUserAuthorizer
Credentials = new InMemoryCredentials
AccessToken = app.appVM.Tokens.AccessToken,
OAuthToken = app.appVM.Tokens.OAuthToken,
ConsumerKey = ConsumerKeys.KEY,
ConsumerSecret = ConsumerKeys.SECRET
ScreenName = app.appVM.Tokens.ScreenName,
UserId = app.appVM.Tokens.UserId
return new TwitterContext(auth, BASE_URL, SEARCH_URL);
Can anyone suggest a fix please?