Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I google at every website but not get any related tutorial ragarding my problem.

i have used following code to connect with facebook using login by user,
C#
OAuthWebSecurity.RegisterClient(new FacebookExtendedClient(
              "***************",
              "****************************",
              "email,likes",
              new Func<string, object, string>(fieldsTransformer),
              "read_stream"));

at last line i added "read_stream" i want this permission when any user logged in through my website but when user logged in there no any dialog box open for permission granting. i searched and found that by default oauthwebsecurity sealed classes provide only scope to "email".

i have used OAuthWebSecurity for this and there is no any virtual method who will allow to add another scope when request for authentication start.
there is method "OAuthWebSecurity.RequestAuthentication" but it will not take any parameter which contains scope.
then how can i add multiple or another scope to get permission from user and get particular data.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900