× Joomla Facebook Connect support forum

Topic-icon cannot import avator

Active Subscriptions:

None
14 years 11 months ago #893 by frankdoe
When i set tn enable joomal intergration i get this message. When i set it to no but i enable import avator i no more get this message but the avator does not import please help. i have not mapped any fields i just want the avator to import.


Mapping user
User and FB id found
Joomla ID not mapped to this user, updating
Map updated

Fatal error: Uncaught exception 'FacebookRestClientException' with message ''fields' parameter must be nonempty' in /hermes/web03/b516/as.digiface/public_html/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php:2458 Stack trace: #0 /hermes/web03/b516/as.digiface/public_html/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php(1232): FacebookRestClient->call_method('facebook.users....', Array) #1 /hermes/web03/b516/as.digiface/public_html/components/com_jfbconnect/helpers/jomsocial.php(46): FacebookRestClient->users_getInfo('504244545', Array) #2 /hermes/web03/b516/as.digiface/public_html/components/com_jfbconnect/helpers/jomsocial.php(24): JFBConnectJomsocialHelper->migrateFBFieldsToJS() #3 /hermes/web03/b516/as.digiface/public_html/components/com_jfbconnect/controller.php(103): JFBConnectJomsocialHelper->importFBProfile() #4 /hermes/web03/b516/as.digiface/public_html/libraries/joomla/application/component/controller.php(236): JFBConnectController->l in /hermes/web03/b516/as.digiface/public_html/administrator/components/com_jfbconnect/assets/facebook-api/facebookapi_php5_restlib.php on line 2458
The topic has been locked.
Support Specialist
14 years 11 months ago #898 by alzander
Replied by alzander on topic cannot import avator
Ahh, we got so excited when we set it up to map fields, we never tested the case where you'd only want the avatar and no fields.

If you can, please add the following 2 bold lines at the bottom to the following file:
components/com_jfbconnect/helpers/jomsocial.php, line 46:
foreach($fbFieldMap as $fbField)
{
$fbFieldArray = explode('.', $fbField);
$fbFields[] = $fbFieldArray[0];
}
if (empty($fbFields))
return;


Let us know if that works for you. It will also be in the next release.
The topic has been locked.