I'm trying to get a cookie set for the users avatar and username to be set when the user logs in. So far I've tried quite a few different methods. IE
$user = Foundry::user();
$fullname = $user->getName();
$avatar = $user->getAvatar( SOCIAL_AVATAR_MEDIUM );
During the login in process none of these seem to work, the username always comes back as SocialUser and the avatar comes back as a default location that isnt even usable as a image address.
http%3A%2F%2Fhttp://www.WEBSITEADDRESS.com%2Fmedia%2Fcom_easysocial%2Fdefaults%2Favatars%2Fuser%2Fmedium.png
As you can see the address that is being put out makes no sense.
I did also include
require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );
Thank you for any help you can provide