diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-05-26 10:19:03 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-05-26 10:19:03 -0700 |
commit | 9c77f36b54bdde6f10bb8b6808f916a27d97772b (patch) | |
tree | 7aabbb615c5446622fa5f48ea29eb27415b8a8ef /src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs | |
parent | 275339ef4c74c65545e0e3abaf08b18cab3b4639 (diff) | |
download | DotNetOpenAuth-9c77f36b54bdde6f10bb8b6808f916a27d97772b.zip DotNetOpenAuth-9c77f36b54bdde6f10bb8b6808f916a27d97772b.tar.gz DotNetOpenAuth-9c77f36b54bdde6f10bb8b6808f916a27d97772b.tar.bz2 |
Switches FacebookClient to use an array of scopes.
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs')
-rw-r--r-- | src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs index f79b965..45804d1 100644 --- a/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs +++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs @@ -42,7 +42,7 @@ namespace DotNetOpenAuth.AspNet.Clients { /// <summary> /// The scope. /// </summary> - private readonly string scope; + private readonly string[] scope; #endregion @@ -74,7 +74,7 @@ namespace DotNetOpenAuth.AspNet.Clients { /// <param name="scope"> /// The scope of authorization to request when authenticating with Facebook. The default is "email". /// </param> - public FacebookClient(string appId, string appSecret, string scope) + public FacebookClient(string appId, string appSecret, params string[] scope) : base("facebook") { Requires.NotNullOrEmpty(appId, "appId"); Requires.NotNullOrEmpty(appSecret, "appSecret"); @@ -103,7 +103,7 @@ namespace DotNetOpenAuth.AspNet.Clients { new Dictionary<string, string> { { "client_id", this.appId }, { "redirect_uri", returnUrl.AbsoluteUri }, - { "scope", this.scope }, + { "scope", string.Join(" ", this.scope) }, }); return builder.Uri; } |