summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Kulatunga <jk17@ualberta.ca>2012-09-27 12:21:15 -0300
committerAndrew Arnott <andrewarnott@gmail.com>2012-11-27 21:55:51 -0800
commit6da97434646d590570e9e15100a7825e7473d703 (patch)
tree988d1d7d66bc37b0cbd3366269173ae459293c02 /src
parent910e188277da0223ce2349ffb81fe0b7e2a9d1c8 (diff)
downloadDotNetOpenAuth-6da97434646d590570e9e15100a7825e7473d703.zip
DotNetOpenAuth-6da97434646d590570e9e15100a7825e7473d703.tar.gz
DotNetOpenAuth-6da97434646d590570e9e15100a7825e7473d703.tar.bz2
Update src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs
Retrive the facebook user's email as well as the rest of their default user data. 
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs
index 8cb5cc5..bbc3b01 100644
--- a/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs
+++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs
@@ -78,7 +78,9 @@ namespace DotNetOpenAuth.AspNet.Clients {
builder.AppendQueryArgs(
new Dictionary<string, string> {
{ "client_id", this.appId },
- { "redirect_uri", returnUrl.AbsoluteUri }
+ { "redirect_uri", returnUrl.AbsoluteUri },
+ { "scope", "email" }
+
});
return builder.Uri;
}
@@ -133,6 +135,7 @@ namespace DotNetOpenAuth.AspNet.Clients {
{ "redirect_uri", NormalizeHexEncoding(returnUrl.AbsoluteUri) },
{ "client_secret", this.appSecret },
{ "code", authorizationCode },
+ { "scope", "email" }
});
using (WebClient client = new WebClient()) {