ASPX templates
Version 5.x > ASPX templates > Extra permisions in FacebookConnectLogon View modes: 
User avatar
Member
Member
damon.amanabadi-artisgroup.com - 5/16/2011 8:04:21 PM
   
Extra permisions in FacebookConnectLogon
Hi Guys,

Is it possible to apply some extra required permisions during the Facebook login process?
as an example I wana add this permision to the list : publish_stream

Cheers,

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 5/17/2011 3:01:55 AM
   
RE:Extra permisions in FacebookConnectLogon
Hello,

Yes, this should not be a problem. You need to add a new field in the User Settings table in CMSSiteManager / Development / System tables which would store this setting during signup. After that you will need to alter slightly the Facebook connect web part. You can find the file to modify in CMSWebParts\Membership\FacebookConnect\FacebookConnectLogon.ascx.cs. You need to add a new input field for this property and update the field in the database in the SetupControl() method. You can update the fields the following way:

UserInfo ui = UserInfoProvider.GetUserInfoByFacebookConnectID(facebookUserId);
ui.SetValue("CulumName", "ColumnValue");
UserInfoProvider.SetUserInfo(ui);

Best regards,
Boris Pocatko

User avatar
Member
Member
damon.amanabadi-artisgroup.com - 5/18/2011 9:03:49 PM
   
RE:Extra permisions in FacebookConnectLogon
Hi ,

I think there's a mis understanding about my question !!!

whenever the end user do a login throw an application in facebook , he/she will give that particular application a list of permisions . currently Kentico's facebook connect component is using the normal access permisions . All I want is to get an extra permision from the users ....

Thanks,

User avatar
Member
Member
damon.amanabadi-artisgroup.com - 5/18/2011 11:57:49 PM
   
RE:Extra permisions in FacebookConnectLogon
Currently , it's just asking the user to allow : "Access my basic information" and I want to add some more permision requests to the list.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 5/23/2011 5:21:01 AM
   
RE:Extra permisions in FacebookConnectLogon
Hello,

You should be able to customize your web part according to the API documentation of Facebook. The web part can be modified after accessing the file:

CMSWebParts\Membership\FacebookConnect\FacebookConnectLogon.ascx

We are also considering to add this feature into the 6.0 version, if it fits in our tight schedule.

Best regards,
Boris Pocatko

User avatar
Member
Member
dmitry.k-markerstudio - 9/26/2012 10:06:58 PM
   
RE:Extra permisions in FacebookConnectLogon
Hi Boris,

I'm trying to find a place where I can put additional permissions in your web part and can't find it. Could you please advice me where I can set additional permissions for facebook login?

Thanks,
Dmitry

User avatar
Member
Member
dmitry.k-markerstudio - 9/26/2012 10:26:21 PM
   
RE:Extra permisions in FacebookConnectLogon
have found.

I just need to add perms attribute to the fb login button.
For example:

<fb:login-button <%=LatestVersionAttribute%> size="<%=Size%>" length="<%=Length%>"
onlogin="Facebook_login();" autologoutlink="false" perms="publish_stream, email"><%=SignInText%></fb:login-button>