Inchoo_SocialConnect
Inchoo_SocialConnect copied to clipboard
Notice: Undefined property: stdClass::$email
We are using this extension for our store. Today when i was checking the system.log, I saw the following error being logged:
Notice: Undefined property: stdClass::$email which refer to the following code: Inchoo_SocialConnect_FacebookController::_connectCallback()
Mage::helper('inchoo_socialconnect/facebook')->connectByCreatingAccount(
$userInfo->email,
$userInfo->first_name,
$userInfo->last_name,
$userInfo->id,
$token
);
Hi MagePsycho, thanks for reporting. I did notice some strange behaviour there so I'll debug asap.
Any luck on this issue fixing?
Hi MagePsycho, from my findings issue is as follows:
http://stackoverflow.com/questions/7603644/intermittent-missing-email-address-in-facebook-api
Since we need an email for sending new Magento account email, I'll either disallow login with facebook if email field is empty, or do what I do for Twitter that doesn't give access to email, fake an email address and notify customer using message to update his profile email address. This needs work though, but at least we know what's causing it.
Regards