I am building an online forum with EasyDiscuss.
In a social login component, I am able to get user avatars from Facebook/Google. Now I want to save these avatars to EasyDiscuss users. EasyDiscuss has some methods like ED::updateProfile($id,$data)
, I think I'd better use it.
This raises a question, once I get the avatar from within the social login component, how can I call this method to save the avatar?
In other words, how do I interact with a component from within another component?
It seems to me require_once('/components/com_easydiscuss/easydiscuss.php')
is good enough. Is it?