Click or drag to resize
AuthenticationHelperAuthenticateFacebookConnectUser Method
Authenticate user with provided Facebook Connect parameters. Create new user if createNew is set to TRUE and user doesn't exist in DB.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 9.0.0
Syntax
C#
public static UserInfo AuthenticateFacebookConnectUser(
	string facebookUserID,
	string siteName,
	bool generatePassword,
	bool disableConfirmation,
	ref string error
)

Parameters

facebookUserID
Type: SystemString
Facebook user ID
siteName
Type: SystemString
Site name
generatePassword
Type: SystemBoolean
Indicates if random password should be generated
disableConfirmation
Type: SystemBoolean
Indicates if e-mail confirmation of newly registered user is disabled
error
Type: SystemString
Error message which will be filled when error occurred

Return Value

Type: UserInfo
UserInfo with authenticated user or null if user is not found
See Also