blob: be4df219773e1b75648bf124b35b1419dc218861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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();
}
}
}
|