I have fixed the problem. The Enable property of my facebook authentication was disable. Thats why even user validation was success, the login and registration link did not changed.
But I have another question. I used to validate as "DNN" type. But why the validation failed when i use my own "FaceBook" authentication type?
Here is the follwing lines not working:
Dim objUser As DotNetNuke.Entities.Users.UserInfo = DotNetNuke.Entities.Users.UserController.ValidateUser(PortalId, Username, "", "FaceBook", "", PortalSettings.PortalName, IPAddress, loginStatus)
Dim eventArgs As UserAuthenticatedEventArgs = New UserAuthenticatedEventArgs(objUser, Username, loginStatus, "FaceBook")
I check it retured LOGIN_FAILURE message when validate.
Anyone suggest what to do ?
Thanks