-1

I like set the Facebook permissions scope. As example user_about_me and email. I find this solution in web:

Dictionary<String, Object> facebookPermissions = new Dictionary<string, object>();
        facebookPermissions.Add("scope", "email,user_about_me");


OAuthWebSecurity.RegisterFacebookClient(OAuthService.AppId, OAuthService.AppSecret, "facebook", facebookPermissions);

But doesn't work. The Facebook login doesn't show me the needed permission for my Facebook App. And the URL have no defined scope..

tereško
  • 58,060
  • 25
  • 98
  • 150
Gregor Biswanger
  • 529
  • 3
  • 16
  • A custom FacebookScopedClient helps me: http://stackoverflow.com/questions/12610402/oauthwebsecurity-with-facebook-not-using-email-permission-as-expected – Gregor Biswanger Dec 02 '12 at 16:39

2 Answers2

0

To get email address permission:

Have a look at this solution from this post (The post that does not marked as an answer):

"Update your NuGet package in your MVC4 Internet project. DotNetOpenAuthCore. It will automatically update all dependencies. Now result.UserName will contain the email adress instead of your name."

Shadi
  • 2,236
  • 2
  • 22
  • 22
-1

The custom FacebookScopedClient was work only correct with localhost.. I upload a web project to Windows Azure Web Role and change in Facebook App the Web Role URL.. the login failed.. I need please a solution with set Facebook Login Scope with DotNetOpenAuth

Gregor Biswanger
  • 529
  • 3
  • 16