Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Update src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs
Browse files Browse the repository at this point in the history
Retrive the facebook user's email as well as the rest of their default user data. 
  • Loading branch information
AnalogJ committed Sep 27, 2012
1 parent b3251eb commit a9d2443
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DotNetOpenAuth.AspNet/Clients/OAuth2/FacebookClient.cs
Expand Up @@ -78,7 +78,9 @@ public FacebookClient(string appId, string appSecret)
builder.AppendQueryArgs(
new Dictionary<string, string> {
{ "client_id", this.appId },
{ "redirect_uri", returnUrl.AbsoluteUri }
{ "redirect_uri", returnUrl.AbsoluteUri },
{ "scope", "email" }

});
return builder.Uri;
}
Expand Down Expand Up @@ -133,6 +135,7 @@ public FacebookClient(string appId, string appSecret)
{ "redirect_uri", NormalizeHexEncoding(returnUrl.AbsoluteUri) },
{ "client_secret", this.appSecret },
{ "code", authorizationCode },
{ "scope", "email" }
});

using (WebClient client = new WebClient()) {
Expand Down

1 comment on commit a9d2443

@rasmuschristensen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change included in the latest NUgetPackage?

Please sign in to comment.