class plgSocialProfilesWebteer extends SocialProfilePlugin
{
function socialProfilesOnLogin($socialNetwork, $jUserId, $scUserId)
...
if ($socialNetwork == 'facebook') {
$fields=array(
'name',
'first_name',
'last_name',
'email',
'birthday_date',
'sex',
'current_location'
);
$profileLibrary = new JFBConnectProfileFacebook();
$profiledata=$profileLibrary->fetchProfile($scUserId, $fields);
if ($socialNetwork == 'google') {
$fields=array(
'name',
'email',
'birthday',
'gender',
'currentLocation'
);
$profileLibrary = new JFBConnectProfileGoogle();
$profiledata=$profileLibrary->fetchProfile($scUserId, $fields);
class JFBConnectProfileFacebook extends JFBConnectProfile
class JFBConnectProfileGoogle extends JFBConnectProfile
//DEPRECATED class as of 5.1
class JFBConnectProfile
$profileLibrary = JFBCFactory::provider('google')->profile;
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.