Topic-icon Linking existing user account to with FB and trigger AUP points

Active Subscriptions:

None
Hello.

Sorry if this has been mentioned but I had a search and couldn't find it. I've managed to hack the code base to fire alpha user points on tweet events, googleplus one events and linkedin events, just need the following....

1) If a user has already signed up on the site with a jomsocial account, can this user then also "link" their facebook account to this existing jomsocial account so we can utilize updating their wall as a method of site promotion?

2) If this can be done, where in the code does it happen so I can manually fire off some alpha user points code hacks

3) When a new user signs up with facebook, where in the code does account get created so again, i can fire some custom AUP points hacks.
The topic has been locked.
Support Specialist
1) There's a few options here:
If not already logged into Joomla:
* You can enable the "Automatically Link Users by Email" setting. When a user tries to login with Facebook, if their Facebook email is already associated with a Joomla user, the accounts will automatically be updated.
* Alternatively, if that's disabled, they can be brought to the Login/Register screen of JFBConnect where they can enter their current Joomla credentials and connect accounts that way.
If already logged in:
* When you use the SCLogin module, a "Login With Facebook" button will show to users who are logged in, but haven't connected their Facebook accounts.
* You can add the following link anywhere on JomSocial for registered users to link accounts. When clicked (if they are logged in) it will map their Facebook user to the current account:
<a href="javascript:void(0)" onclick="jfbc.login.login_custom();">Link account to Facebook</a>

2) There's 2 main spots that the mapping of accounts happens for existing users. If you let me know which steps above you're using, we can gladly point you in the right direction.

3) That depends.. what is your Registration Flow setting in JFBConnect? Both would be in the /components/com_jfbconnect/controllers/loginregister.php file. For users that fill out the form, they are created in the createNewUser function. For users that have accounts auto-created, it'd be in the createFacebookOnlyUser function.

Hope that helps, but feel free to bounce back any other questions you have!
Alex
The topic has been locked.
Active Subscriptions:

None

Automatically Link Facebook Users by Email:

Exactly what I was looking for and blindly missed in the settings.


createNewUser()
createFacebookOnlyUser()
They look like what I was looking for.

Thanks for the help and have a super weekend
The topic has been locked.
Support Specialist
Best of luck, and let us know how it goes!

Alex
The topic has been locked.