danielcrenna/tweetsharp — Issue #19: WP7 Demo - BrowserScriptNotify never gets triggered
Author: jamesatgithub
Created: 2012-02-10 15:08:16+00:00
State: open

I followed the wp7 demo in my app and I noticed the WebBrowser's event ScriptNotify never triggers (I have IsScriptEnabled=true)

private void BrowserScriptNotify(object sender, NotifyEventArgs e)
{
var values = ParseQueryString(e.Value);
if(values.ContainsKey("oauth_verifier"))
{
var verifier = values["oauth_verifier"];
_service.GetAccessToken(_requestToken, verifier, HandleAuthenticationAccessToken);
}
else
{
Dispatcher.BeginInvoke(
() => MessageBox.Show("Did not authenticate correctly")
);
}
}

So I have to make a UI for user to enter the PIN manually.. hope there's a way to make this automatically

James