summaryrefslogtreecommitdiffstats
path: root/samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-05-06 21:09:19 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-05-06 21:09:19 -0700
commit91f6fca9adfd016f913cab905a986d68117f6caa (patch)
tree2e2bb8bf4c0819529ca70c8f5fbfccaf5ad88d20 /samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs
parent230e0ee9ad8826e48de7250772eaa895da37afd1 (diff)
downloadDotNetOpenAuth-91f6fca9adfd016f913cab905a986d68117f6caa.zip
DotNetOpenAuth-91f6fca9adfd016f913cab905a986d68117f6caa.tar.gz
DotNetOpenAuth-91f6fca9adfd016f913cab905a986d68117f6caa.tar.bz2
Working to catch up with latest OAuth 2.0 spec.
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs')
-rw-r--r--samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs b/samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs
new file mode 100644
index 0000000..be4df21
--- /dev/null
+++ b/samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs
@@ -0,0 +1,24 @@
+using System.Web;
+using DotNetOpenAuth.OAuthWrap;
+
+namespace DotNetOpenAuth.ApplicationBlock {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using DotNetOpenAuth.Messaging;
+
+ public class FacebookClient : WebAppClient {
+ private static readonly AuthorizationServerDescription FacebookDescription = new AuthorizationServerDescription {
+ TokenEndpoint = new Uri("https://graph.facebook.com/oauth/access_token"),
+ AuthorizationEndpoint = new Uri("https://graph.facebook.com/oauth/authorize"),
+ };
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FacebookClient"/> class.
+ /// </summary>
+ public FacebookClient() : base(FacebookDescription) {
+ this.TokenManager = new TokenManager();
+ }
+ }
+}