Alex, sorry if i wasn't clear. I have automatic registration enabled now. I prefer that method for simplicity, but the problem that i had was that if an automatic registration occurs, the user has no chance to select the profile type, but if i had automatic registration disabled, the user falls in a loops during registration process.
Now, with that change, if the session has the profile type selected and alternateflow is set to true, it means that the user clicks a social sign-in button and a registration process has been started, so i must to create the new account with the correct profile type.
I really dont prefer any core-hack. Please, test this with my setup (Jomsocial, JFBConnect and JSPT). It must work in any scenario (i think haha)
Regards,
JM