diff options
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs')
-rw-r--r-- | samples/DotNetOpenAuth.ApplicationBlock/FacebookClient.cs | 24 |
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(); + } + } +} |