Hi Alex,
I hope you can help me with some questions... I'm need show the customer picture/avatar from Facebook in my own module, I'm looking for a solution in the helper.php of mod_sclogin.
function getFacebookAvatar()
{
$html = "";
if ($this->isJFBConnectInstalled)
{
$fbUserId = $this->jfbcLibrary->getMappedFbUserId();
# Show their FB avatar (if desired), or give them the option to link accounts
if ($fbUserId)
{
$fbProfileURL = 'https://www.facebook.com/profile.php?id='.$fbUserId;
$fbAvatarSize = $this->getJFBConnectAvatarSize();
$fbAvatarURL = 'https://graph.facebook.com/'.$fbUserId.'/picture?type='.$fbAvatarSize;
if($this->showSecurely())
$fbAvatarURL .= '&return_ssl_resources=1';
$html = $this->getSocialAvatarImage($fbAvatarURL, $fbProfileURL);
}
}
return $html;
}
How can I use this code in my new module to get the avatar from Facebook?
Please help.