Topic-icon [SOLVED][dev] Is an event triggered when a user links social accounts?

Active Subscriptions:

None
7 years 3 months ago - 7 years 3 months ago #60773 by intrahouse
Hi,

I need to send user info to another server when the user logs in, something that already was clarified in a previous post. But I noticed that I'd like to be warned when the user links accounts, e.g.: user entered with her facebook account and linked that account with her linkedin one, since I want that info to be sent as soon as possible to the server.

So my question is: when the user finally links her account successfully to another one, is an event triggered? Looking at the code, I don't find any.

Thanks.
Last edit: 7 years 3 months ago by mel.
The topic has been locked.
Support Specialist
We don't have a trigger just for linking a new account. However, our onLogin function in our social plugins can help you do what you're looking for. It will trigger each time and contains the social network and user id (in both Joomla and the social network) for the login. You can use that to update your external database with the link details. It would happen every time, but that usually shouldn't be an issue.

I hope that helps answer your question, but if not, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None

alzander wrote: We don't have a trigger just for linking a new account. However, our onLogin function in our social plugins can help you do what you're looking for. It will trigger each time and contains the social network and user id (in both Joomla and the social network) for the login. You can use that to update your external database with the link details. It would happen every time, but that usually shouldn't be an issue.

I hope that helps answer your question, but if not, just let me know.

Thanks,
Alex


Thanks, Alex. That works for me.
The topic has been locked.