diff options
Diffstat (limited to 'samples/OAuthConsumer')
-rw-r--r-- | samples/OAuthConsumer/Facebook.aspx.cs | 2 | ||||
-rw-r--r-- | samples/OAuthConsumer/SampleWcf2.aspx.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/OAuthConsumer/Facebook.aspx.cs b/samples/OAuthConsumer/Facebook.aspx.cs index 95e209a..9e62fbf 100644 --- a/samples/OAuthConsumer/Facebook.aspx.cs +++ b/samples/OAuthConsumer/Facebook.aspx.cs @@ -17,7 +17,7 @@ IAuthorizationState authorization = client.ProcessUserAuthorization(); if (authorization == null) { // Kick off authorization request - client.Channel.Send(client.PrepareRequestUserAuthorization()); + client.RequestUserAuthorization(); } else { var request = WebRequest.Create("https://graph.facebook.com/me?access_token=" + Uri.EscapeDataString(authorization.AccessToken)); using (var response = request.GetResponse()) { diff --git a/samples/OAuthConsumer/SampleWcf2.aspx.cs b/samples/OAuthConsumer/SampleWcf2.aspx.cs index 9ff8c25..55154bc 100644 --- a/samples/OAuthConsumer/SampleWcf2.aspx.cs +++ b/samples/OAuthConsumer/SampleWcf2.aspx.cs @@ -65,7 +65,7 @@ where item.Selected select item.Value).ToArray(); - Client.RequestUserAuthorization(scopes).Send(); + Client.RequestUserAuthorization(scopes); } protected void getNameButton_Click(object sender, EventArgs e) { |