Topic-icon Check if user is connected to a social network?

Active Subscriptions:

None
As subjets says, is any code to check if the user is, for instance, is connected to his/her facebook account?
The topic has been locked.
Support Specialist
10 years 9 months ago #54707 by alzander
The below code is what you're looking for:
$providerUserId = JFBCFactory::provider('facebook')->getMappedUserId();
That will return null if the user isn't mapped to the selected network or will return the unique ID for the social network for that user.

I hope that helps, but if you have any other questions, just let me know.

Thanks,
Alex
The topic has been locked.