windows 8 - I need to check whether user is authenticated or not by using linqtotwitter library in windows8 -
i need verify user authenticated or not his/her twitter account using linqtotwitter library.normally iam able login twitter account opening webview. not able find whether he/she authenticated. here code.
var auth = new winrtauthorizer { credentials = new localdatacredentials { consumerkey = constants.twitter_consumerkey, consumersecret = constants.twitter_consumersecret }, usecompression = true, callback = new uri("http://linqtotwitter.codeplex.com/") }; if (auth == null || !auth.isauthorized) { await auth.authorizeasync(); } twitterctx = new twittercontext(auth);
i able twitter context iam not able find whether login succeed or not. once user succeed need open popup. please me how can this.
you can use account/verifycredentials, this:
var accounts = acct in twitterctx.account acct.type == accounttype.verifycredentials select acct;
Comments
Post a Comment